From: Satyam Sharma On Sun, 2 Sep 2007, Satyam Sharma wrote: > > --- kernel/softlockup.c~fix 2007-09-02 04:23:49.000000000 +0530 > +++ kernel/softlockup.c 2007-09-02 04:34:45.000000000 +0530 ^^^^^^^^^^ Ick, I botched a trivial patch, it doesn't even apply. Updated one below (with indentation fix as added bonus :-) [PATCH -mm] softlockup-improve-debug-output.patch fix (v2) kernel/softlockup.c: In function 'softlockup_tick': kernel/softlockup.c:125: warning: 'regs' is used uninitialized in this function is a genuine bug (will cause an oops in all probability, or cause wrong info to be printed, if we're lucky). So let's fix the softlockup-improve-debug-output.patch to actually work as intended. Signed-off-by: Satyam Sharma Acked-by: Ingo Molnar Signed-off-by: Andrew Morton --- kernel/softlockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/softlockup.c~softlockup-improve-debug-output-fix kernel/softlockup.c --- a/kernel/softlockup.c~softlockup-improve-debug-output-fix +++ a/kernel/softlockup.c @@ -79,7 +79,7 @@ void softlockup_tick(void) int this_cpu = smp_processor_id(); unsigned long touch_timestamp = per_cpu(touch_timestamp, this_cpu); unsigned long print_timestamp; - struct pt_regs *regs; + struct pt_regs *regs = get_irq_regs(); unsigned long now; if (touch_timestamp == 0) { _