]> 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)
commitfdaf0f6b6e98feaa2cdfaa4ad348dc3c926cfccd
tree4a95b41c4e2296366f2ad16aa6ff20ecb3eaf827
parent40b607ff6b5b00e2d71f7fa8908fb2284bffb4c5
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