perf/x86/uncore: Clean up uncore_pci_ids[]
authorKan Liang <kan.liang@linux.intel.com>
Wed, 4 May 2022 19:44:12 +0000 (12:44 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 11 May 2022 14:27:08 +0000 (16:27 +0200)
commite5ae168e8394dc3c6dce580690c87ff2cf16cdbb
tree7455e4fb47fe89a73b0dd56a7eee47e26512fe16
parentcd971104ac7e41ff66082b9b584d319bb0688a1a
perf/x86/uncore: Clean up uncore_pci_ids[]

The initialization code to assign PCI IDs for different platforms is
similar. Add the new macros to reduce the redundant code.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220504194413.1003071-4-kan.liang@linux.intel.com
arch/x86/events/intel/uncore_snb.c