]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/uncore: Remove WARN_ON_ONCE in uncore_pci_probe
authorJiri Olsa <jolsa@redhat.com>
Wed, 18 May 2016 06:16:10 +0000 (08:16 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 18 May 2016 14:17:25 +0000 (16:17 +0200)
commit3281d07b167afaac4e9350b1ece684eaa3d59704
tree1f2ca2c3f70428cbf8f915355e497df8dd0c3aca
parent863464020f40551b116fe9159baeaba2f484418b
perf/x86/intel/uncore: Remove WARN_ON_ONCE in uncore_pci_probe

When booting with nr_cpus=1, uncore_pci_probe tries to init the PCI/uncore
also for the other packages and fails with warning when they are not found.

The warning is bogus because it's correct to fail here for packages which are
not initialized. Remove it and return silently.

Fixes: 093d79553b2a "perf/x86/uncore: Track packages, not per CPU data"
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: stable@vger.kernel.org
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/events/intel/uncore.c