From: Hidetoshi Seto Date: Mon, 17 Nov 2008 01:18:08 +0000 (+0900) Subject: [IA64] use mprintk instead of printk, in ia64_mca_modify_original_stack X-Git-Tag: v2.6.28-rc6~1^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ef23cdbefc3ab7f2ee9ee6dc6d4a94d7d6ec5e2b;p=linux-2.6-omap-h63xx.git [IA64] use mprintk instead of printk, in ia64_mca_modify_original_stack Using printk from MCA/INIT context is unsafe since it can cause deadlock. The ia64_mca_modify_original_stack is called from both of mca handler and init handler, so it should use mprintk instead of printk. Signed-off-by: Hidetoshi Seto Signed-off-by: Tony Luck --- diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c index 7dd96c12717..bab1de2d2f6 100644 --- a/arch/ia64/kernel/mca.c +++ b/arch/ia64/kernel/mca.c @@ -1139,7 +1139,7 @@ ia64_mca_modify_original_stack(struct pt_regs *regs, return previous_current; no_mod: - printk(KERN_INFO "cpu %d, %s %s, original stack not modified\n", + mprintk(KERN_INFO "cpu %d, %s %s, original stack not modified\n", smp_processor_id(), type, msg); return previous_current; }