lkml.org 
[lkml]   [2011]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[RFC][PATCH] cpufreq: e_powersaver: Fix checking brand for EPS_BRAND_C3
From
Date
Do not return -ENODEV for EPS_BRAND_C3.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
I just found the code is suspect.
I don't have this hardware handy.
Anyone can help to confirm and test if this patch works?
Axel

drivers/cpufreq/e_powersaver.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/cpufreq/e_powersaver.c b/drivers/cpufreq/e_powersaver.c
index 35a257d..637f055 100644
--- a/drivers/cpufreq/e_powersaver.c
+++ b/drivers/cpufreq/e_powersaver.c
@@ -199,8 +199,9 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
break;
case EPS_BRAND_C3:
printk(KERN_CONT "C3\n");
- return -ENODEV;
break;
+ default:
+ return -ENODEV;
}
/* Enable Enhanced PowerSaver */
rdmsrl(MSR_IA32_MISC_ENABLE, val);
--
1.7.4.1




\
 
 \ /
  Last update: 2011-07-08 10:39    [W:0.112 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site