idle.c (05e5bd0f3daddb0368a433af5b58be68c62dc365) | idle.c (7230c5644188cd9e3fb380cc97dde00c464a3ba7) |
---|---|
1/* 2 * Idle daemon for PowerPC. Idle daemon will handle any action 3 * that needs to be taken when the system becomes idle. 4 * 5 * Originally written by Cort Dougan (cort@cs.nmt.edu). 6 * Subsequent 32-bit hacking by Tom Rini, Armin Kuster, 7 * Paul Mackerras and others. 8 * --- 70 unchanged lines hidden (view full) --- 79 stop_critical_timings(); 80 81 /* check again after disabling irqs */ 82 if (!need_resched() && !cpu_should_die()) 83 ppc_md.power_save(); 84 85 start_critical_timings(); 86 | 1/* 2 * Idle daemon for PowerPC. Idle daemon will handle any action 3 * that needs to be taken when the system becomes idle. 4 * 5 * Originally written by Cort Dougan (cort@cs.nmt.edu). 6 * Subsequent 32-bit hacking by Tom Rini, Armin Kuster, 7 * Paul Mackerras and others. 8 * --- 70 unchanged lines hidden (view full) --- 79 stop_critical_timings(); 80 81 /* check again after disabling irqs */ 82 if (!need_resched() && !cpu_should_die()) 83 ppc_md.power_save(); 84 85 start_critical_timings(); 86 |
87 local_irq_enable(); | 87 /* Some power_save functions return with 88 * interrupts enabled, some don't. 89 */ 90 if (irqs_disabled()) 91 local_irq_enable(); |
88 set_thread_flag(TIF_POLLING_NRFLAG); 89 90 } else { 91 /* 92 * Go into low thread priority and possibly 93 * low power mode. 94 */ 95 HMT_low(); --- 73 unchanged lines hidden --- | 92 set_thread_flag(TIF_POLLING_NRFLAG); 93 94 } else { 95 /* 96 * Go into low thread priority and possibly 97 * low power mode. 98 */ 99 HMT_low(); --- 73 unchanged lines hidden --- |