summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorArtem Fetishev <artem_fetishev@epam.com>2014-03-28 13:33:39 -0700
committerJiri Slaby <jslaby@suse.cz>2014-04-03 10:32:28 +0200
commit2c611dc0ca77c8012fee6f33cf05040b16dbee38 (patch)
tree4211cd8ee0eb07929c3f772cd768e84ff041e11b /scripts
parentc890d3e4ff2070295ebc7f9467cff1719820646d (diff)
x86: fix boot on uniprocessor systems
commit 825600c0f20e595daaa7a6dd8970f84fa2a2ee57 upstream. 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 <artem_fetishev@epam.com> Cc: Stephane Eranian <eranian@google.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions