| Submitter | Wu Zhangjin |
|---|---|
| Date | 2010-03-09 04:03:28 |
| Message ID | <1268152048-30522-1-git-send-email-wuzhangin@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/1044/ |
| State | Accepted |
| Delegated to: | Ralf Baechle |
| Headers | show |
Comments
Patch
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index f3d73e1..87d19dd 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c @@ -64,8 +64,13 @@ void __noreturn cpu_idle(void) smtc_idle_loop_hook(); #endif - if (cpu_wait) + + if (cpu_wait) { + /* Don't trace irqs off for idle */ + stop_critical_timings(); (*cpu_wait)(); + start_critical_timings(); + } } #ifdef CONFIG_HOTPLUG_CPU if (!cpu_online(cpu) && !cpu_isset(cpu, cpu_callin_map) &&