idle.c (a976c2951d8f376112361830aa7762beff83a205) | idle.c (e13606d7321c0c08d4ac2d74a1102680a40cfdee) |
---|---|
1/* 2 * Copyright (C) 2006-2007 PA Semi, Inc 3 * 4 * Maintained by: Olof Johansson <olof@lixom.net> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 64 unchanged lines hidden (view full) --- 73 /* everything handled */ 74 regs->msr |= MSR_RI; 75 return 1; 76} 77 78static int __init pasemi_idle_init(void) 79{ 80#ifndef CONFIG_PPC_PASEMI_CPUFREQ | 1/* 2 * Copyright (C) 2006-2007 PA Semi, Inc 3 * 4 * Maintained by: Olof Johansson <olof@lixom.net> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 64 unchanged lines hidden (view full) --- 73 /* everything handled */ 74 regs->msr |= MSR_RI; 75 return 1; 76} 77 78static int __init pasemi_idle_init(void) 79{ 80#ifndef CONFIG_PPC_PASEMI_CPUFREQ |
81 printk(KERN_WARNING "No cpufreq driver, powersavings modes disabled\n"); | 81 pr_warn("No cpufreq driver, powersavings modes disabled\n"); |
82 current_mode = 0; 83#endif 84 85 ppc_md.system_reset_exception = pasemi_system_reset_exception; 86 ppc_md.power_save = modes[current_mode].entry; | 82 current_mode = 0; 83#endif 84 85 ppc_md.system_reset_exception = pasemi_system_reset_exception; 86 ppc_md.power_save = modes[current_mode].entry; |
87 printk(KERN_INFO "Using PA6T idle loop (%s)\n", modes[current_mode].name); | 87 pr_info("Using PA6T idle loop (%s)\n", modes[current_mode].name); |
88 89 return 0; 90} 91machine_late_initcall(pasemi, pasemi_idle_init); 92 93static int __init idle_param(char *p) 94{ 95 int i; 96 for (i = 0; i < ARRAY_SIZE(modes); i++) { 97 if (!strcmp(modes[i].name, p)) { 98 current_mode = i; 99 break; 100 } 101 } 102 return 0; 103} 104 105early_param("idle", idle_param); | 88 89 return 0; 90} 91machine_late_initcall(pasemi, pasemi_idle_init); 92 93static int __init idle_param(char *p) 94{ 95 int i; 96 for (i = 0; i < ARRAY_SIZE(modes); i++) { 97 if (!strcmp(modes[i].name, p)) { 98 current_mode = i; 99 break; 100 } 101 } 102 return 0; 103} 104 105early_param("idle", idle_param); |