x86/cpu: Add 'table' argument to cpu_matches()
authorMark Gross <mgross@linux.intel.com>
Tue, 28 Apr 2020 14:58:20 +0000 (16:58 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 11 Jun 2020 18:05:56 +0000 (19:05 +0100)
commit98a637c406eefe95f2428739c1397f250bb7fadd
tree5d111cc07fca83cf762789119bff96e63530ece2
parentbed86e750bb02981a5efe110b7e9ae3d989a2e73
x86/cpu: Add 'table' argument to cpu_matches()

commit 93920f61c2ad7edb01e63323832585796af75fc9 upstream.

To make cpu_matches() reusable for other matching tables, have it take a
pointer to a x86_cpu_id table as an argument.

 [ bp: Flip arguments order. ]

Signed-off-by: Mark Gross <mgross@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kernel/cpu/common.c