diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-03-20 16:13:49 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-03-24 23:22:28 +0300 |
commit | ef37219ab828c9ead544589ed33cd94f9273d7c7 (patch) | |
tree | 467985ff6ee003de2196e8bd1a7fe2d7d0593954 /arch/x86/events/amd/power.c | |
parent | f6d502fcfc51ae025f18a8de8f1ed2ab34503742 (diff) | |
download | linux-ef37219ab828c9ead544589ed33cd94f9273d7c7.tar.xz |
x86/perf/events: Convert to new CPU match macros
The new macro set has a consistent namespace and uses C99 initializers
instead of the grufty C89 ones.
Get rid the of the local macro wrappers for consistency.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lkml.kernel.org/r/20200320131509.029267418@linutronix.de
Diffstat (limited to 'arch/x86/events/amd/power.c')
-rw-r--r-- | arch/x86/events/amd/power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/events/amd/power.c b/arch/x86/events/amd/power.c index abef51320e3a..43b09e9c93a2 100644 --- a/arch/x86/events/amd/power.c +++ b/arch/x86/events/amd/power.c @@ -259,7 +259,7 @@ static int power_cpu_init(unsigned int cpu) } static const struct x86_cpu_id cpu_match[] = { - { .vendor = X86_VENDOR_AMD, .family = 0x15 }, + X86_MATCH_VENDOR_FAM(AMD, 0x15, NULL), {}, }; |