Skip to content

Commit

Permalink
[CPUFREQ] Longhaul - Simplier minmult
Browse files Browse the repository at this point in the history
Simple cleanup in code which is setting minmult.

Signed-off-by: Rafal Bilski <[email protected]>
Signed-off-by: Dave Jones <[email protected]>
  • Loading branch information
rafalbilski authored and Dave Jones committed Feb 11, 2007
1 parent f0ec313 commit 9addf3b
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions arch/i386/kernel/cpu/cpufreq/longhaul.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,22 +358,15 @@ static int __init longhaul_get_ranges(void)
* C3 is booting at max anyway. */
maxmult = mult;
/* Get min multiplier */
switch (longhaul_version) {
case TYPE_LONGHAUL_V1:
case TYPE_LONGHAUL_V2:
minmult = 30;
switch (cpu_model) {
case CPU_NEHEMIAH:
minmult = 50;
break;

case TYPE_POWERSAVER:
/* Ezra-T */
if (cpu_model == CPU_EZRA_T)
minmult = 30;
/* Nehemiah */
else if (cpu_model == CPU_NEHEMIAH)
minmult = 50;
/* Nehemiah C */
else if (cpu_model == CPU_NEHEMIAH_C)
minmult = 40;
case CPU_NEHEMIAH_C:
minmult = 40;
break;
default:
minmult = 30;
break;
}

Expand Down

0 comments on commit 9addf3b

Please sign in to comment.