Skip to content

Commit f779871

Browse files
committed
Merge branch 'x86/cpu' into x86/urgent
Merge the forgotten cleanup patch for the new file, so the mess does not propagate further.
2 parents e898e69 + 266d63a commit f779871

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

arch/x86/include/asm/cpu_device_id.h

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
#ifndef _CPU_DEVICE_ID
3-
#define _CPU_DEVICE_ID 1
2+
#ifndef _ASM_X86_CPU_DEVICE_ID
3+
#define _ASM_X86_CPU_DEVICE_ID
44

55
/*
66
* Declare drivers belonging to specific x86 CPUs
@@ -9,8 +9,6 @@
99

1010
#include <linux/mod_devicetable.h>
1111

12-
extern const struct x86_cpu_id *x86_match_cpu(const struct x86_cpu_id *match);
13-
1412
/*
1513
* Match specific microcode revisions.
1614
*
@@ -22,21 +20,22 @@ extern const struct x86_cpu_id *x86_match_cpu(const struct x86_cpu_id *match);
2220
*/
2321

2422
struct x86_cpu_desc {
25-
__u8 x86_family;
26-
__u8 x86_vendor;
27-
__u8 x86_model;
28-
__u8 x86_stepping;
29-
__u32 x86_microcode_rev;
23+
u8 x86_family;
24+
u8 x86_vendor;
25+
u8 x86_model;
26+
u8 x86_stepping;
27+
u32 x86_microcode_rev;
3028
};
3129

32-
#define INTEL_CPU_DESC(mod, step, rev) { \
33-
.x86_family = 6, \
34-
.x86_vendor = X86_VENDOR_INTEL, \
35-
.x86_model = mod, \
36-
.x86_stepping = step, \
37-
.x86_microcode_rev = rev, \
30+
#define INTEL_CPU_DESC(model, stepping, revision) { \
31+
.x86_family = 6, \
32+
.x86_vendor = X86_VENDOR_INTEL, \
33+
.x86_model = (model), \
34+
.x86_stepping = (stepping), \
35+
.x86_microcode_rev = (revision), \
3836
}
3937

38+
extern const struct x86_cpu_id *x86_match_cpu(const struct x86_cpu_id *match);
4039
extern bool x86_cpu_has_min_microcode_rev(const struct x86_cpu_desc *table);
4140

42-
#endif
41+
#endif /* _ASM_X86_CPU_DEVICE_ID */

0 commit comments

Comments
 (0)