Skip to content

Commit 2fa9a3c

Browse files
bp3tk0vsuryasaimadhu
authored andcommitted
x86/smpboot: Remove the last ICPU() macro
Now all is using the shiny new macros. No code changed: # arch/x86/kernel/smpboot.o: text data bss dec hex filename 16432 2649 40 19121 4ab1 smpboot.o.before 16432 2649 40 19121 4ab1 smpboot.o.after md5: a58104003b72c1de533095bc5a4c30a9 smpboot.o.before.asm a58104003b72c1de533095bc5a4c30a9 smpboot.o.after.asm Signed-off-by: Borislav Petkov <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 8f3d9f3 commit 2fa9a3c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

arch/x86/kernel/smpboot.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,24 +1849,25 @@ static bool slv_set_max_freq_ratio(u64 *base_freq, u64 *turbo_freq)
18491849
#include <asm/cpu_device_id.h>
18501850
#include <asm/intel-family.h>
18511851

1852-
#define ICPU(model) \
1853-
{X86_VENDOR_INTEL, 6, model, X86_FEATURE_APERFMPERF, 0}
1852+
#define X86_MATCH(model) \
1853+
X86_MATCH_VENDOR_FAM_MODEL_FEATURE(INTEL, 6, \
1854+
INTEL_FAM6_##model, X86_FEATURE_APERFMPERF, NULL)
18541855

18551856
static const struct x86_cpu_id has_knl_turbo_ratio_limits[] = {
1856-
ICPU(INTEL_FAM6_XEON_PHI_KNL),
1857-
ICPU(INTEL_FAM6_XEON_PHI_KNM),
1857+
X86_MATCH(XEON_PHI_KNL),
1858+
X86_MATCH(XEON_PHI_KNM),
18581859
{}
18591860
};
18601861

18611862
static const struct x86_cpu_id has_skx_turbo_ratio_limits[] = {
1862-
ICPU(INTEL_FAM6_SKYLAKE_X),
1863+
X86_MATCH(SKYLAKE_X),
18631864
{}
18641865
};
18651866

18661867
static const struct x86_cpu_id has_glm_turbo_ratio_limits[] = {
1867-
ICPU(INTEL_FAM6_ATOM_GOLDMONT),
1868-
ICPU(INTEL_FAM6_ATOM_GOLDMONT_D),
1869-
ICPU(INTEL_FAM6_ATOM_GOLDMONT_PLUS),
1868+
X86_MATCH(ATOM_GOLDMONT),
1869+
X86_MATCH(ATOM_GOLDMONT_D),
1870+
X86_MATCH(ATOM_GOLDMONT_PLUS),
18701871
{}
18711872
};
18721873

0 commit comments

Comments
 (0)