diff options
Diffstat (limited to 'arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c')
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c index 05209b5cc6ca..19f6b9d27e83 100644 --- a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c +++ b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c | |||
@@ -682,6 +682,18 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
682 | perf->states[i].transition_latency * 1000; | 682 | perf->states[i].transition_latency * 1000; |
683 | } | 683 | } |
684 | 684 | ||
685 | /* Check for high latency (>20uS) from buggy BIOSes, like on T42 */ | ||
686 | if (perf->control_register.space_id == ACPI_ADR_SPACE_FIXED_HARDWARE && | ||
687 | policy->cpuinfo.transition_latency > 20 * 1000) { | ||
688 | static int print_once; | ||
689 | policy->cpuinfo.transition_latency = 20 * 1000; | ||
690 | if (!print_once) { | ||
691 | print_once = 1; | ||
692 | printk(KERN_INFO "Capping off P-state tranision latency" | ||
693 | " at 20 uS\n"); | ||
694 | } | ||
695 | } | ||
696 | |||
685 | data->max_freq = perf->states[0].core_frequency * 1000; | 697 | data->max_freq = perf->states[0].core_frequency * 1000; |
686 | /* table init */ | 698 | /* table init */ |
687 | for (i = 0; i < perf->state_count; i++) { | 699 | for (i = 0; i < perf->state_count; i++) { |