]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/uncore: Register the PMU only if the uncore pci device exists
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 4 Sep 2014 23:08:27 +0000 (16:08 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Sep 2014 12:48:22 +0000 (14:48 +0200)
commit6c9a2d8364b6a239cf7b35736da19d41ff65bec4
tree4a95b41c4e2296366f2ad16aa6ff20ecb3eaf827
parentedc98ded23a06255902289783612a8117d56d690
perf/x86/intel/uncore: Register the PMU only if the uncore pci device exists

Current code registers PMUs for all possible uncore pci devices.
This is not good because, on some machines, one or more uncore pci
devices can be missing. The missing pci device make corresponding
PMU unusable. Register the PMU only if the uncore device exists.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: eranian@google.com
Link: http://lkml.kernel.org/r/1409872109-31645-3-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore.c