diff options
author | arnd@arndb.de <arnd@arndb.de> | 2006-10-24 18:31:26 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-10-25 14:20:22 +1000 |
commit | 302eca184fb844670fb128c69e22a8a28bbce48a (patch) | |
tree | 6d61e03b85e2d11c58d527f6125bd33cbd27c5ae /arch/powerpc/kernel/idle.c | |
parent | b3d7dc1967d1303d4897ff9537d29f6e077de147 (diff) | |
download | talos-op-linux-302eca184fb844670fb128c69e22a8a28bbce48a.tar.gz talos-op-linux-302eca184fb844670fb128c69e22a8a28bbce48a.zip |
[POWERPC] cell: use ppc_md->power_save instead of cbe_idle_loop
This moves the cell idle function to use the default cpu_idle
with a special power_save callback, like all other platforms
except iSeries already do.
It also makes it possible to disable this power_save function
with a new powerpc-specific boot option "powersave=off".
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/idle.c')
-rw-r--r-- | arch/powerpc/kernel/idle.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c index 4180c3998b39..8994af327b47 100644 --- a/arch/powerpc/kernel/idle.c +++ b/arch/powerpc/kernel/idle.c @@ -39,6 +39,13 @@ #define cpu_should_die() 0 #endif +static int __init powersave_off(char *arg) +{ + ppc_md.power_save = NULL; + return 0; +} +__setup("powersave=off", powersave_off); + /* * The body of the idle task. */ |