Files
android_kernel_xiaomi_sm8450/arch/x86/include/asm
Artem Fetishev 825600c0f2 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 <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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-03-28 13:56:58 -07:00
..
2014-01-25 08:55:10 +01:00
2009-01-29 14:16:51 +01:00
2014-03-11 10:16:18 -07:00
2012-03-28 18:11:12 +01:00
2013-04-25 10:39:04 +02:00
2011-05-02 17:24:48 +02:00
2014-03-04 23:43:33 +00:00
2012-03-28 18:11:12 +01:00
2010-02-16 21:22:26 -08:00
2014-01-23 16:36:54 -08:00
2011-04-18 09:26:48 -07:00
2012-03-20 21:48:30 +08:00
2013-08-05 06:35:33 -07:00
2013-02-03 18:16:27 -05:00
2009-08-27 00:35:56 +02:00
2014-03-11 10:16:18 -07:00
2010-10-26 16:52:08 -07:00
2012-06-25 13:48:30 +02:00
2009-06-13 15:37:30 +02:00
2014-01-17 10:22:10 +01:00
2011-07-22 14:39:50 +09:30
2013-04-22 15:45:03 +09:30
2010-06-09 11:12:36 +02:00
2014-01-10 14:23:15 -07:00
2011-03-15 15:34:15 -07:00
2013-10-09 20:04:08 -05:00
2012-02-20 12:52:05 -08:00
2013-02-03 18:16:27 -05:00
2014-03-11 10:16:18 -07:00
2009-06-15 12:40:02 +02:00
2013-11-06 20:00:05 +01:00
2012-03-28 18:11:12 +01:00