Re: Panic 2.6.24-3 NMI Watchdog detected LOCKUP on CPU 0

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ed Tomlinson <edt@...>
Cc: <linux-kernel@...>
Date: Saturday, March 1, 2008 - 10:29 am

On Sat, 1 Mar 2008, Ed Tomlinson wrote:

Questions first. Is there a particular reason to use idle=poll ?

Idea: does the patch below help ?

Thanks,
	tglx

---

 arch/x86/kernel/process_64.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: linux-2.6.24/arch/x86/kernel/process_64.c
===================================================================
--- linux-2.6.24.orig/arch/x86/kernel/process_64.c
+++ linux-2.6.24/arch/x86/kernel/process_64.c
@@ -212,14 +212,13 @@ void cpu_idle (void)
 	current_thread_info()->status |= TS_POLLING;
 	/* endless idle loop with no priority at all */
 	while (1) {
+		tick_nohz_stop_sched_tick();
 		while (!need_resched()) {
 			void (*idle)(void);
 
 			if (__get_cpu_var(cpu_idle_state))
 				__get_cpu_var(cpu_idle_state) = 0;
 
-			tick_nohz_stop_sched_tick();
-
 			rmb();
 			idle = pm_idle;
 			if (!idle)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Panic 2.6.24-3 NMI Watchdog detected LOCKUP on CPU 0, Ed Tomlinson, (Sat Mar 1, 10:11 am)
Re: Panic 2.6.24-3 NMI Watchdog detected LOCKUP on CPU 0, Thomas Gleixner, (Sat Mar 1, 10:29 am)