* [PATCH] Longhaul - Simplier minmult
@ 2007-02-07 21:53 Rafał Bilski
0 siblings, 0 replies; only message in thread
From: Rafał Bilski @ 2007-02-07 21:53 UTC (permalink / raw)
To: Dave Jones; +Cc: cpufreq
Simple cleanup in code which is setting minmult.
Signed-off-by: Rafal Bilski <rafalbilski@interia.pl>
---
arch/i386/kernel/cpu/cpufreq/longhaul.c | 23 ++++++++---------------
1 files changed, 8 insertions(+), 15 deletions(-)
diff --git a/arch/i386/kernel/cpu/cpufreq/longhaul.c b/arch/i386/kernel/cpu/cpufreq/longhaul.c
--- a/arch/i386/kernel/cpu/cpufreq/longhaul.c
+++ b/arch/i386/kernel/cpu/cpufreq/longhaul.c
@@ -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;
}
----------------------------------------------------------------------
Oficjalne konto pocztowe europejskich internautow!
>>> http://link.interia.pl/f19e8
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-07 21:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-07 21:53 [PATCH] Longhaul - Simplier minmult Rafał Bilski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox