aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/power
diff options
context:
space:
mode:
authorVince Weaver <vincent.weaver@maine.edu>2012-10-19 17:33:38 -0400
committerIngo Molnar <mingo@kernel.org>2012-10-24 10:32:00 +0200
commit58e9eaf06f5476cb2192ec1d012674ce5e79dd21 (patch)
tree9e5d64ad3aa856c29b39c941bae67490e89b87dd /arch/x86/power
parente09df47885d767e418902067ce1885aafa3b27db (diff)
downloadkernel_goldelico_gta04-58e9eaf06f5476cb2192ec1d012674ce5e79dd21.zip
kernel_goldelico_gta04-58e9eaf06f5476cb2192ec1d012674ce5e79dd21.tar.gz
kernel_goldelico_gta04-58e9eaf06f5476cb2192ec1d012674ce5e79dd21.tar.bz2
perf/x86: Remove P6 cpuc->enabled check
Between 2.6.33 and 2.6.34 the PMU code was made modular. The x86_pmu_enable() call was extended to disable cpuc->enabled and iterate the counters, enabling one at a time, before calling enable_all() at the end, followed by re-enabling cpuc->enabled. Since cpuc->enabled was set to 0, that change effectively caused the "val |= ARCH_PERFMON_EVENTSEL_ENABLE;" code in p6_pmu_enable_event() and p6_pmu_disable_event() to be dead code that was never called. This change removes this code (which was confusing) and adds some extra commentary to make it more clear what is going on. Signed-off-by: Vince Weaver <vincent.weaver@maine.edu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/alpine.DEB.2.02.1210191732000.14552@vincent-weaver-1.um.maine.edu Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/power')
0 files changed, 0 insertions, 0 deletions