idle.c (de4fb176622d54a82ea3ceb7362392aaf5ff0b5a) idle.c (b793a01000122d2bd133ba451a76cc135b5e162c)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Idle daemon for PowerPC. Idle daemon will handle any action
4 * that needs to be taken when the system becomes idle.
5 *
6 * Originally written by Cort Dougan (cort@cs.nmt.edu).
7 * Subsequent 32-bit hacking by Tom Rini, Armin Kuster,
8 * Paul Mackerras and others.

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

32
33unsigned long cpuidle_disable = IDLE_NO_OVERRIDE;
34EXPORT_SYMBOL(cpuidle_disable);
35
36static int __init powersave_off(char *arg)
37{
38 ppc_md.power_save = NULL;
39 cpuidle_disable = IDLE_POWERSAVE_OFF;
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Idle daemon for PowerPC. Idle daemon will handle any action
4 * that needs to be taken when the system becomes idle.
5 *
6 * Originally written by Cort Dougan (cort@cs.nmt.edu).
7 * Subsequent 32-bit hacking by Tom Rini, Armin Kuster,
8 * Paul Mackerras and others.

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

32
33unsigned long cpuidle_disable = IDLE_NO_OVERRIDE;
34EXPORT_SYMBOL(cpuidle_disable);
35
36static int __init powersave_off(char *arg)
37{
38 ppc_md.power_save = NULL;
39 cpuidle_disable = IDLE_POWERSAVE_OFF;
40 return 0;
40 return 1;
41}
42__setup("powersave=off", powersave_off);
43
44void arch_cpu_idle(void)
45{
46 ppc64_runlatch_off();
47
48 if (ppc_md.power_save) {

--- 80 unchanged lines hidden ---
41}
42__setup("powersave=off", powersave_off);
43
44void arch_cpu_idle(void)
45{
46 ppc64_runlatch_off();
47
48 if (ppc_md.power_save) {

--- 80 unchanged lines hidden ---