[PATCH] ia64: don't print modules from show_regs()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The function is being used in contexts where listing the modules is
inappropriate and possibly wasteful (one example is
sysrq_handle_showallcpus()), and the name also doesn't imply such
behavior.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

---
 arch/ia64/kernel/process.c |    1 -
 arch/ia64/kernel/traps.c   |    5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)

--- 2.6.39-rc5/arch/ia64/kernel/process.c
+++ 2.6.39-rc5-ia64-show_regs-no-print_modules/arch/ia64/kernel/process.c
@@ -108,7 +108,6 @@ show_regs (struct pt_regs *regs)
 {
 	unsigned long ip = regs->cr_iip + ia64_psr(regs)->ri;
 
-	print_modules();
 	printk("\nPid: %d, CPU %d, comm: %20s\n", task_pid_nr(current),
 			smp_processor_id(), current->comm);
 	printk("psr : %016lx ifs : %016lx ip  : [<%016lx>]    %s (%s)\n",
--- 2.6.39-rc5/arch/ia64/kernel/traps.c
+++ 2.6.39-rc5-ia64-show_regs-no-print_modules/arch/ia64/kernel/traps.c
@@ -62,9 +62,10 @@ die (const char *str, struct pt_regs *re
 		printk("%s[%d]: %s %ld [%d]\n",
 		current->comm, task_pid_nr(current), str, err, ++die_counter);
 		if (notify_die(DIE_OOPS, str, regs, err, 255, SIGSEGV)
-	            != NOTIFY_STOP)
+	            != NOTIFY_STOP) {
+			print_modules();
 			show_regs(regs);
-		else
+		} else
 			regs = NULL;
   	} else
 		printk(KERN_ERR "Recursive die() failure, output suppressed\n");



--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux