[PATCH] e_powersaver: This is C7 driver only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Enhanced Powersaver has been replaced by Adaptive Powersaver technology. Flag
"est" on VIA/Centaur Nano processors means that processor supports Adaptive
Powersaver.

Signed-off-by: Rafał Bilski <rafalbilski@xxxxxxxxxx>
---
 drivers/cpufreq/e_powersaver.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/cpufreq/e_powersaver.c b/drivers/cpufreq/e_powersaver.c
index 7638f5d..28600ae 100644
--- a/drivers/cpufreq/e_powersaver.c
+++ b/drivers/cpufreq/e_powersaver.c
@@ -237,10 +237,6 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
 		brand = (((lo >> 4) ^ (lo >> 2))) & 0xff;
 		printk(KERN_CONT "Model D ");
 		break;
-	default:
-		printk(KERN_CONT "unknown processor\n");
-		return -ENODEV;
-		break;
 	}
 
 	switch (brand) {
@@ -437,7 +433,8 @@ static int __init eps_init(void)
 	/* This driver will work only on Centaur C7 processors with
 	 * Enhanced SpeedStep/PowerSaver registers */
 	if (c->x86_vendor != X86_VENDOR_CENTAUR
-	    || c->x86 != 6 || c->x86_model < 10)
+	    || c->x86 != 6
+	    || !(c->x86_model == 10 || c->x86_model == 13))
 		return -ENODEV;
 	if (!cpu_has(c, X86_FEATURE_EST))
 		return -ENODEV;
-- 
1.7.6


----------------------------------------------------------------
Znajdz samochod idealny dla siebie!
Szukaj >> http://linkint.pl/f29e2
--
To unsubscribe from this list: send the line "unsubscribe cpufreq" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux