Skip to content

Commit ef3f00a

Browse files
Jiri OlsaKAGA-KOKO
authored andcommitted
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: cf6d445 "perf/x86/uncore: Track packages, not per CPU data" Signed-off-by: Jiri Olsa <[email protected]> Cc: [email protected] Cc: Peter Zijlstra <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
1 parent bc231d9 commit ef3f00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/events/intel/uncore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ static int uncore_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id
891891
return -ENODEV;
892892

893893
pkg = topology_phys_to_logical_pkg(phys_id);
894-
if (WARN_ON_ONCE(pkg < 0))
894+
if (pkg < 0)
895895
return -EINVAL;
896896

897897
if (UNCORE_PCI_DEV_TYPE(id->driver_data) == UNCORE_EXTRA_PCI_DEV) {

0 commit comments

Comments
 (0)