]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit513d793e5fe138d779ad6c532cd20c289a6897fc
tree4a95b41c4e2296366f2ad16aa6ff20ecb3eaf827
parente735b9db12d76d45f74aee78bd63bbd2f8f480e1
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