diff options
| -rw-r--r-- | drivers/idle/intel_idle.c | 21 | ||||
| -rw-r--r-- | include/linux/cpuidle.h | 2 |
2 files changed, 22 insertions, 1 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 | ||
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 480c14dc1ddd..309f7f596b4c 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | #include <linux/completion.h> | 17 | #include <linux/completion.h> |
| 18 | #include <linux/hrtimer.h> | 18 | #include <linux/hrtimer.h> |
| 19 | 19 | ||
| 20 | #define CPUIDLE_STATE_MAX 8 | 20 | #define CPUIDLE_STATE_MAX 10 |
| 21 | #define CPUIDLE_NAME_LEN 16 | 21 | #define CPUIDLE_NAME_LEN 16 |
| 22 | #define CPUIDLE_DESC_LEN 32 | 22 | #define CPUIDLE_DESC_LEN 32 |
| 23 | 23 | ||
