diff options
author | Olof Johansson <olof@lixom.net> | 2007-04-27 15:46:01 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-27 15:51:57 +1000 |
commit | 2e0c3370b3ecf831ef209f1094df36a808865845 (patch) | |
tree | 770811bacfb792089406c797bf706748d16f170f /arch/powerpc/platforms/pasemi/idle.c | |
parent | 116ab40df8decf8c519368e31825e9584c86adf2 (diff) |
[POWERPC] pasemi: Cpufreq driver
Cpufreq driver for PA Semi PWRficient processors.
Signed-off-by: Egor Martovetsky <egor@pasemi.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pasemi/idle.c')
-rw-r--r-- | arch/powerpc/platforms/pasemi/idle.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pasemi/idle.c b/arch/powerpc/platforms/pasemi/idle.c index 1ca3ff38159..5985ce0c5c4 100644 --- a/arch/powerpc/platforms/pasemi/idle.c +++ b/arch/powerpc/platforms/pasemi/idle.c @@ -61,6 +61,10 @@ static int pasemi_system_reset_exception(struct pt_regs *regs) /* do system reset */ return 0; } + + /* Set higher astate since we come out of power savings at 0 */ + restore_astate(hard_smp_processor_id()); + /* everything handled */ regs->msr |= MSR_RI; return 1; @@ -68,6 +72,11 @@ static int pasemi_system_reset_exception(struct pt_regs *regs) void __init pasemi_idle_init(void) { +#ifndef CONFIG_PPC_PASEMI_CPUFREQ + printk(KERN_WARNING "No cpufreq driver, powersavings modes disabled\n"); + current_mode = 0; +#endif + ppc_md.system_reset_exception = pasemi_system_reset_exception; ppc_md.power_save = modes[current_mode].entry; printk(KERN_INFO "Using PA6T idle loop (%s)\n", modes[current_mode].name); |