aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorArtem Fetishev <[email protected]>2014-03-28 13:33:39 -0700
committerLinus Torvalds <[email protected]>2014-03-28 13:56:58 -0700
commit825600c0f20e595daaa7a6dd8970f84fa2a2ee57 (patch)
treeae739547c15bb979d412c6eced02796310b04afb /lib/mpi/mpi-internal.h
parentd9060742fbf630fe31951dfc10b798deb2813f01 (diff)
x86: fix boot on uniprocessor systems
On x86 uniprocessor systems topology_physical_package_id() returns -1 which causes rapl_cpu_prepare() to leave rapl_pmu variable uninitialized which leads to GPF in rapl_pmu_init(). See arch/x86/kernel/cpu/perf_event_intel_rapl.c. It turns out that physical_package_id and core_id can actually be retreived for uniprocessor systems too. Enabling them also fixes rapl_pmu code. Signed-off-by: Artem Fetishev <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions