process.c (d4bbf7e7759afc172e2bfbc5c416324590049cdd) | process.c (bd2f55361f18347e890d52ff9cfd8895455ec11b) |
---|---|
1/* 2 * arch/xtensa/kernel/process.c 3 * 4 * Xtensa Processor version. 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. --- 99 unchanged lines hidden (view full) --- 108void cpu_idle(void) 109{ 110 local_irq_enable(); 111 112 /* endless idle loop with no priority at all */ 113 while (1) { 114 while (!need_resched()) 115 platform_idle(); | 1/* 2 * arch/xtensa/kernel/process.c 3 * 4 * Xtensa Processor version. 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. --- 99 unchanged lines hidden (view full) --- 108void cpu_idle(void) 109{ 110 local_irq_enable(); 111 112 /* endless idle loop with no priority at all */ 113 while (1) { 114 while (!need_resched()) 115 platform_idle(); |
116 preempt_enable_no_resched(); 117 schedule(); 118 preempt_disable(); | 116 schedule_preempt_disabled(); |
119 } 120} 121 122/* 123 * This is called when the thread calls exit(). 124 */ 125void exit_thread(void) 126{ --- 213 unchanged lines hidden --- | 117 } 118} 119 120/* 121 * This is called when the thread calls exit(). 122 */ 123void exit_thread(void) 124{ --- 213 unchanged lines hidden --- |