process.c (2bbb6817c0ac1b5f2a68d720f364f98eeb1ac4fd) process.c (1268fbc746ea1cd279886a740dcbad4ba5232225)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1994 - 1999, 2000 by Ralf Baechle and others.
7 * Copyright (C) 2005, 2006 by Ralf Baechle (ralf@linux-mips.org)
8 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.

--- 42 unchanged lines hidden (view full) ---

51{
52 int cpu;
53
54 /* CPU is going idle. */
55 cpu = smp_processor_id();
56
57 /* endless idle loop with no priority at all */
58 while (1) {
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1994 - 1999, 2000 by Ralf Baechle and others.
7 * Copyright (C) 2005, 2006 by Ralf Baechle (ralf@linux-mips.org)
8 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.

--- 42 unchanged lines hidden (view full) ---

51{
52 int cpu;
53
54 /* CPU is going idle. */
55 cpu = smp_processor_id();
56
57 /* endless idle loop with no priority at all */
58 while (1) {
59 tick_nohz_idle_enter_norcu();
59 tick_nohz_idle_enter();
60 rcu_idle_enter();
60 while (!need_resched() && cpu_online(cpu)) {
61#ifdef CONFIG_MIPS_MT_SMTC
62 extern void smtc_idle_loop_hook(void);
63
64 smtc_idle_loop_hook();
65#endif
66
67 if (cpu_wait) {

--- 4 unchanged lines hidden (view full) ---

72 }
73 }
74#ifdef CONFIG_HOTPLUG_CPU
75 if (!cpu_online(cpu) && !cpu_isset(cpu, cpu_callin_map) &&
76 (system_state == SYSTEM_RUNNING ||
77 system_state == SYSTEM_BOOTING))
78 play_dead();
79#endif
61 while (!need_resched() && cpu_online(cpu)) {
62#ifdef CONFIG_MIPS_MT_SMTC
63 extern void smtc_idle_loop_hook(void);
64
65 smtc_idle_loop_hook();
66#endif
67
68 if (cpu_wait) {

--- 4 unchanged lines hidden (view full) ---

73 }
74 }
75#ifdef CONFIG_HOTPLUG_CPU
76 if (!cpu_online(cpu) && !cpu_isset(cpu, cpu_callin_map) &&
77 (system_state == SYSTEM_RUNNING ||
78 system_state == SYSTEM_BOOTING))
79 play_dead();
80#endif
80 tick_nohz_idle_exit_norcu();
81 rcu_idle_exit();
82 tick_nohz_idle_exit();
81 preempt_enable_no_resched();
82 schedule();
83 preempt_disable();
84 }
85}
86
87asmlinkage void ret_from_fork(void);
88

--- 407 unchanged lines hidden ---
83 preempt_enable_no_resched();
84 schedule();
85 preempt_disable();
86 }
87}
88
89asmlinkage void ret_from_fork(void);
90

--- 407 unchanged lines hidden ---