diff options
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/longhaul.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/longhaul.c b/arch/i386/kernel/cpu/cpufreq/longhaul.c index 8eca59d4c8f4..ef8f0bc3fc71 100644 --- a/arch/i386/kernel/cpu/cpufreq/longhaul.c +++ b/arch/i386/kernel/cpu/cpufreq/longhaul.c | |||
@@ -75,6 +75,7 @@ static unsigned int longhaul_index; | |||
75 | 75 | ||
76 | /* Module parameters */ | 76 | /* Module parameters */ |
77 | static int scale_voltage; | 77 | static int scale_voltage; |
78 | static int disable_acpi_c3; | ||
78 | 79 | ||
79 | #define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, "longhaul", msg) | 80 | #define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, "longhaul", msg) |
80 | 81 | ||
@@ -844,6 +845,9 @@ static int __init longhaul_cpu_init(struct cpufreq_policy *policy) | |||
844 | if (cx->address > 0 && cx->latency <= 1000) | 845 | if (cx->address > 0 && cx->latency <= 1000) |
845 | longhaul_flags |= USE_ACPI_C3; | 846 | longhaul_flags |= USE_ACPI_C3; |
846 | } | 847 | } |
848 | /* Disable if it isn't working */ | ||
849 | if (disable_acpi_c3) | ||
850 | longhaul_flags &= ~USE_ACPI_C3; | ||
847 | /* Check if northbridge is friendly */ | 851 | /* Check if northbridge is friendly */ |
848 | if (enable_arbiter_disable()) | 852 | if (enable_arbiter_disable()) |
849 | longhaul_flags |= USE_NORTHBRIDGE; | 853 | longhaul_flags |= USE_NORTHBRIDGE; |
@@ -952,6 +956,9 @@ static void __exit longhaul_exit(void) | |||
952 | kfree(longhaul_table); | 956 | kfree(longhaul_table); |
953 | } | 957 | } |
954 | 958 | ||
959 | module_param (disable_acpi_c3, int, 0644); | ||
960 | MODULE_PARM_DESC(disable_acpi_c3, "Don't use ACPI C3 support"); | ||
961 | |||
955 | module_param (scale_voltage, int, 0644); | 962 | module_param (scale_voltage, int, 0644); |
956 | MODULE_PARM_DESC(scale_voltage, "Scale voltage of processor"); | 963 | MODULE_PARM_DESC(scale_voltage, "Scale voltage of processor"); |
957 | 964 | ||