process_32.c (da733563be5a9da26fe81d9f007262d00b846e22) | process_32.c (bd2f55361f18347e890d52ff9cfd8895455ec11b) |
---|---|
1/* linux/arch/sparc/kernel/process.c 2 * 3 * Copyright (C) 1995, 2008 David S. Miller (davem@davemloft.net) 4 * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be) 5 */ 6 7/* 8 * This file handles the architecture-dependent parts of process handling.. --- 99 unchanged lines hidden (view full) --- 108 109 if (pm_idle) { 110 while (!need_resched()) 111 (*pm_idle)(); 112 } else { 113 while (!need_resched()) 114 cpu_relax(); 115 } | 1/* linux/arch/sparc/kernel/process.c 2 * 3 * Copyright (C) 1995, 2008 David S. Miller (davem@davemloft.net) 4 * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be) 5 */ 6 7/* 8 * This file handles the architecture-dependent parts of process handling.. --- 99 unchanged lines hidden (view full) --- 108 109 if (pm_idle) { 110 while (!need_resched()) 111 (*pm_idle)(); 112 } else { 113 while (!need_resched()) 114 cpu_relax(); 115 } |
116 preempt_enable_no_resched(); 117 schedule(); 118 preempt_disable(); | 116 schedule_preempt_disabled(); |
119 check_pgt_cache(); 120 } 121} 122 123#else 124 125/* This is being executed in task 0 'user space'. */ 126void cpu_idle(void) --- 6 unchanged lines hidden (view full) --- 133 while (!need_resched()) 134 (*pm_idle)(); 135 } else 136#endif 137 { 138 while (!need_resched()) 139 cpu_relax(); 140 } | 117 check_pgt_cache(); 118 } 119} 120 121#else 122 123/* This is being executed in task 0 'user space'. */ 124void cpu_idle(void) --- 6 unchanged lines hidden (view full) --- 131 while (!need_resched()) 132 (*pm_idle)(); 133 } else 134#endif 135 { 136 while (!need_resched()) 137 cpu_relax(); 138 } |
141 preempt_enable_no_resched(); 142 schedule(); 143 preempt_disable(); | 139 schedule_preempt_disabled(); |
144 check_pgt_cache(); 145 } 146} 147 148#endif 149 150/* XXX cli/sti -> local_irq_xxx here, check this works once SMP is fixed. */ 151void machine_halt(void) --- 567 unchanged lines hidden --- | 140 check_pgt_cache(); 141 } 142} 143 144#endif 145 146/* XXX cli/sti -> local_irq_xxx here, check this works once SMP is fixed. */ 147void machine_halt(void) --- 567 unchanged lines hidden --- |