diff options
author | Pallipadi, Venkatesh <venkatesh.pallipadi@intel.com> | 2006-03-09 20:07:44 -0800 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-03-10 00:45:35 -0500 |
commit | 6d373ea012b2974e627b9ee830e75cf3bf3c4c24 (patch) | |
tree | 6d7d2dfd2309675446f727a6b4b2a6ff475835fb /arch/i386 | |
parent | 8ff69732d484ea9ccbf242cc49b4fe9538e64c71 (diff) | |
download | kernel_samsung_smdk4412-6d373ea012b2974e627b9ee830e75cf3bf3c4c24.zip kernel_samsung_smdk4412-6d373ea012b2974e627b9ee830e75cf3bf3c4c24.tar.gz kernel_samsung_smdk4412-6d373ea012b2974e627b9ee830e75cf3bf3c4c24.tar.bz2 |
[CPUFREQ] Fix the p4-clockmod N60 errata workaround.
Fix the code to disable freqs less than 2GHz in N60 errata.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/p4-clockmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c b/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c index 0e1fc5c..ab6504e 100644 --- a/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c +++ b/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c @@ -244,7 +244,7 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) for (i=1; (p4clockmod_table[i].frequency != CPUFREQ_TABLE_END); i++) { if ((i<2) && (has_N44_O17_errata[policy->cpu])) p4clockmod_table[i].frequency = CPUFREQ_ENTRY_INVALID; - else if (has_N60_errata[policy->cpu] && p4clockmod_table[i].frequency < 2000000) + else if (has_N60_errata[policy->cpu] && ((stock_freq * i)/8) < 2000000) p4clockmod_table[i].frequency = CPUFREQ_ENTRY_INVALID; else p4clockmod_table[i].frequency = (stock_freq * i)/8; |