]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/uncore: Move uncore_box_init() out of driver initialization
authorKan Liang <kan.liang@intel.com>
Tue, 20 Jan 2015 04:54:25 +0000 (04:54 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 28 Jan 2015 12:04:34 +0000 (13:04 +0100)
commit318d13352900a059d6d4cc35a994c1c24d69ff32
tree200e6737a865934728356b94cc255bc841631d01
parent5cba4d2694ae4f56e02ffcb000e50b7489d119d0
perf/x86/intel/uncore: Move uncore_box_init() out of driver initialization

There were some issues about the uncore driver tried to access
non-existing boxes, which caused boot crashes. These issues have
been all fixed. But we should avoid boot failures if that ever
happens again.

This patch intends to prevent this kind of potential issues.
It moves uncore_box_init out of driver initialization. The box
will be initialized when it's first enabled.

Signed-off-by: Kan Liang <kan.liang@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1421729665-5912-1-git-send-email-kan.liang@intel.com
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore.c
arch/x86/kernel/cpu/perf_event_intel_uncore.h