aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/idle/intel_idle.c
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2012-02-15 23:13:14 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-16 01:27:15 -0500
commit8bf11938459ff8ceb8643258d0a35e0f2bc9be17 (patch)
tree5a9eb0736e39aa73b4d1badc099030cdc7328995 /drivers/idle/intel_idle.c
parent9f3519d2ed26d2ede5b6432fb64af0e7e8ed13e3 (diff)
intel_idle: Revert change of auto_demotion_disable_flags for Nehalem
Commit b66b8b9a4a79087dde1b358a016e5c8739ccf186 ('intel-idle: convert to x86_cpu_id auto probing') added a distinction between Nehalem and Westemere processors and changed auto_demotion_disable_flags for the former to 0. This was not explained in the commit message, so change it back. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Acked-by: Thomas Renninger <trenn@suse.de> Acked-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/idle/intel_idle.c')
-rw-r--r--drivers/idle/intel_idle.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
index a238649e7461..1c15e9b33575 100644
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -331,10 +331,6 @@ static void auto_demotion_disable(void *dummy)
331 331
332static const struct idle_cpu idle_cpu_nehalem = { 332static const struct idle_cpu idle_cpu_nehalem = {
333 .state_table = nehalem_cstates, 333 .state_table = nehalem_cstates,
334};
335
336static const struct idle_cpu idle_cpu_westmere = {
337 .state_table = nehalem_cstates,
338 .auto_demotion_disable_flags = NHM_C1_AUTO_DEMOTE | NHM_C3_AUTO_DEMOTE, 334 .auto_demotion_disable_flags = NHM_C1_AUTO_DEMOTE | NHM_C3_AUTO_DEMOTE,
339}; 335};
340 336
@@ -358,12 +354,12 @@ static const struct x86_cpu_id intel_idle_ids[] = {
358 ICPU(0x1a, idle_cpu_nehalem), 354 ICPU(0x1a, idle_cpu_nehalem),
359 ICPU(0x1e, idle_cpu_nehalem), 355 ICPU(0x1e, idle_cpu_nehalem),
360 ICPU(0x1f, idle_cpu_nehalem), 356 ICPU(0x1f, idle_cpu_nehalem),
361 ICPU(0x25, idle_cpu_westmere), 357 ICPU(0x25, idle_cpu_nehalem),
362 ICPU(0x2c, idle_cpu_westmere), 358 ICPU(0x2c, idle_cpu_nehalem),
363 ICPU(0x2e, idle_cpu_westmere), 359 ICPU(0x2e, idle_cpu_nehalem),
364 ICPU(0x1c, idle_cpu_atom), 360 ICPU(0x1c, idle_cpu_atom),
365 ICPU(0x26, idle_cpu_lincroft), 361 ICPU(0x26, idle_cpu_lincroft),
366 ICPU(0x2f, idle_cpu_westmere), 362 ICPU(0x2f, idle_cpu_nehalem),
367 ICPU(0x2a, idle_cpu_snb), 363 ICPU(0x2a, idle_cpu_snb),
368 ICPU(0x2d, idle_cpu_snb), 364 ICPU(0x2d, idle_cpu_snb),
369 {} 365 {}