Re: [PATCH] powerpc/kdump: Fix timeout in crash_kexec_wait_realmode

2011-07-06 Thread Anton Blanchard
On Tue, 05 Jul 2011 16:40:10 +1000 Michael Neuling wrote: > The existing code it pretty ugly. How about we clean it up even more > like this? Looks good and it passed my kdump test cases. Anton > From: Anton Blanchard > > We check for timeout expiry in the outer loop, but we also need to >

[PATCH] powerpc/kdump: Fix timeout in crash_kexec_wait_realmode

2011-07-04 Thread Michael Neuling
The existing code it pretty ugly. How about we clean it up even more like this? From: Anton Blanchard We check for timeout expiry in the outer loop, but we also need to check it in the inner loop or we can lock up forever waiting for a CPU to hit real mode. Signed-off-by: Anton Blanchard Sign

[PATCH] powerpc/kdump: Fix timeout in crash_kexec_wait_realmode

2011-07-04 Thread Anton Blanchard
We check for timeout expiry in the outer loop, but we also need to check it in the inner loop or we can lock up forever waiting for a CPU to hit real mode. Signed-off-by: Anton Blanchard Cc: --- Index: linux-powerpc/arch/powerpc/kernel/crash.c ==