aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/idle
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2013-02-27 13:18:50 -0500
committerLen Brown <len.brown@intel.com>2013-04-17 19:23:32 -0400
commit86239ceb33b0d8480b0f0ca0eec08e7f7a807374 (patch)
treea550318b207a3bdde7c095b23c3dfef18637ea12 /drivers/idle
parentca58710f3ae585ed6203043cc6d4ffb805adeee4 (diff)
intel_idle: initial C8, C9, C10 support
Allow intel_idle and cpuidle to utilize C8, C9, C10 when they are present on... "Fourth Generation Intel(R) Core(TM) Processors", which are based on Intel(R) microarchitecture code name Haswell. Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/idle')
-rw-r--r--drivers/idle/intel_idle.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
index 1a38dd7dfe4e..c7fbac392952 100644
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -274,6 +274,27 @@ static struct cpuidle_state hsw_cstates[CPUIDLE_STATE_MAX] = {
274 .target_residency = 500, 274 .target_residency = 500,
275 .enter = &intel_idle }, 275 .enter = &intel_idle },
276 { 276 {
277 .name = "C8-HSW",
278 .desc = "MWAIT 0x40",
279 .flags = MWAIT2flg(0x40) | CPUIDLE_FLAG_TIME_VALID | CPUIDLE_FLAG_TLB_FLUSHED,
280 .exit_latency = 300,
281 .target_residency = 900,
282 .enter = &intel_idle },
283 {
284 .name = "C9-HSW",
285 .desc = "MWAIT 0x50",
286 .flags = MWAIT2flg(0x50) | CPUIDLE_FLAG_TIME_VALID | CPUIDLE_FLAG_TLB_FLUSHED,
287 .exit_latency = 600,
288 .target_residency = 1800,
289 .enter = &intel_idle },
290 {
291 .name = "C10-HSW",
292 .desc = "MWAIT 0x60",
293 .flags = MWAIT2flg(0x60) | CPUIDLE_FLAG_TIME_VALID | CPUIDLE_FLAG_TLB_FLUSHED,
294 .exit_latency = 2600,
295 .target_residency = 7700,
296 .enter = &intel_idle },
297 {
277 .enter = NULL } 298 .enter = NULL }
278}; 299};
279 300