From: Yan, Zheng Date: Thu, 4 Sep 2014 23:08:27 +0000 (-0700) Subject: perf/x86/intel/uncore: Register the PMU only if the uncore pci device exists X-Git-Tag: fixes-against-v3.18-rc2~100^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=513d793e5fe138d779ad6c532cd20c289a6897fc;p=pandora-kernel.git 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 Signed-off-by: Andi Kleen Signed-off-by: Peter Zijlstra (Intel) Cc: eranian@google.com Link: http://lkml.kernel.org/r/1409872109-31645-3-git-send-email-andi@firstfloor.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed