]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: move field disable from per-driver to per-cpu
authorShuoX Liu <shuox.liu@intel.com>
Tue, 3 Jul 2012 17:05:31 +0000 (19:05 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 3 Jul 2012 17:05:31 +0000 (19:05 +0200)
commit4fe483f43e4cc36d4646f7a155aaa5b843b645f4
tree620ffab8288830c8e8dc03b24e77fe3800d03b7e
parent3b15e0f7495f5dcfda3ad9d09b0aa6894191804f
cpuidle: move field disable from per-driver to per-cpu

Andrew J.Schorr raises a question.  When he changes the disable setting on
a single CPU, it affects all the other CPUs.  Basically, currently, the
disable field is per-driver instead of per-cpu.  All the C states of the
same driver are shared by all CPU in the same machine.

The patch changes the `disable' field to per-cpu, so we could set this
separately for each cpu.

Signed-off-by: ShuoX Liu <shuox.liu@intel.com>
Reported-by: Andrew J.Schorr <aschorr@telemetry-investments.com>
Reviewed-by: Yanmin Zhang <yanmin_zhang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/cpuidle/cpuidle.c
drivers/cpuidle/governors/menu.c
drivers/cpuidle/sysfs.c
include/linux/cpuidle.h