diff options
author | Dave Jones <davej@redhat.com> | 2006-06-05 15:25:20 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-06-05 15:25:20 -0400 |
commit | 6ccf58ab22499139bacc683493c9fd70af55adbb (patch) | |
tree | 5fd813e5eab0f24ccf7d908380ae347df0e7123e /arch/i386 | |
parent | 436fe7b8b4a5016ef1fcb32bff77bde84003e15d (diff) |
[CPUFREQ] sets nforce2 minimum PLL divider to 2.
Sets minimum PLL divider to 2.
No negative impact when tested with two nForce2 based boards.
Alexander Choporov reported (06/01/06) that xdiv = 1 does not work on his
Abit NF7S2. Although there shouldn't be much cases that lead to xdiv = 1.
(Updates also the (C) year)
Signed-off-by: Sebastian Witt <se.witt@gmx.net>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c b/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c index cbfd23483d1f..0d49d73d1b71 100644 --- a/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c +++ b/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * (C) 2004 Sebastian Witt <se.witt@gmx.net> | 2 | * (C) 2004-2006 Sebastian Witt <se.witt@gmx.net> |
3 | * | 3 | * |
4 | * Licensed under the terms of the GNU GPL License version 2. | 4 | * Licensed under the terms of the GNU GPL License version 2. |
5 | * Based upon reverse engineered information | 5 | * Based upon reverse engineered information |
@@ -90,7 +90,7 @@ static int nforce2_calc_pll(unsigned int fsb) | |||
90 | 90 | ||
91 | /* Try to calculate multiplier and divider up to 4 times */ | 91 | /* Try to calculate multiplier and divider up to 4 times */ |
92 | while (((mul == 0) || (div == 0)) && (tried <= 3)) { | 92 | while (((mul == 0) || (div == 0)) && (tried <= 3)) { |
93 | for (xdiv = 1; xdiv <= 0x80; xdiv++) | 93 | for (xdiv = 2; xdiv <= 0x80; xdiv++) |
94 | for (xmul = 1; xmul <= 0xfe; xmul++) | 94 | for (xmul = 1; xmul <= 0xfe; xmul++) |
95 | if (nforce2_calc_fsb(NFORCE2_PLL(xmul, xdiv)) == | 95 | if (nforce2_calc_fsb(NFORCE2_PLL(xmul, xdiv)) == |
96 | fsb + tried) { | 96 | fsb + tried) { |