process_64.c (2bbb6817c0ac1b5f2a68d720f364f98eeb1ac4fd) | process_64.c (1268fbc746ea1cd279886a740dcbad4ba5232225) |
---|---|
1/* arch/sparc64/kernel/process.c 2 * 3 * Copyright (C) 1995, 1996, 2008 David S. Miller (davem@davemloft.net) 4 * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be) 5 * Copyright (C) 1997, 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz) 6 */ 7 8/* --- 81 unchanged lines hidden (view full) --- 90/* The idle loop on sparc64. */ 91void cpu_idle(void) 92{ 93 int cpu = smp_processor_id(); 94 95 set_thread_flag(TIF_POLLING_NRFLAG); 96 97 while(1) { | 1/* arch/sparc64/kernel/process.c 2 * 3 * Copyright (C) 1995, 1996, 2008 David S. Miller (davem@davemloft.net) 4 * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be) 5 * Copyright (C) 1997, 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz) 6 */ 7 8/* --- 81 unchanged lines hidden (view full) --- 90/* The idle loop on sparc64. */ 91void cpu_idle(void) 92{ 93 int cpu = smp_processor_id(); 94 95 set_thread_flag(TIF_POLLING_NRFLAG); 96 97 while(1) { |
98 tick_nohz_idle_enter_norcu(); | 98 tick_nohz_idle_enter(); 99 rcu_idle_enter(); |
99 100 while (!need_resched() && !cpu_is_offline(cpu)) 101 sparc64_yield(cpu); 102 | 100 101 while (!need_resched() && !cpu_is_offline(cpu)) 102 sparc64_yield(cpu); 103 |
103 tick_nohz_idle_exit_norcu(); | 104 rcu_idle_exit(); 105 tick_nohz_idle_exit(); |
104 105 preempt_enable_no_resched(); 106 107#ifdef CONFIG_HOTPLUG_CPU 108 if (cpu_is_offline(cpu)) 109 cpu_play_dead(); 110#endif 111 --- 673 unchanged lines hidden --- | 106 107 preempt_enable_no_resched(); 108 109#ifdef CONFIG_HOTPLUG_CPU 110 if (cpu_is_offline(cpu)) 111 cpu_play_dead(); 112#endif 113 --- 673 unchanged lines hidden --- |