History

x86/cpu: Add a steppings field to struct x86_cpu_id

Intel uses the same family/model for several CPUs. Sometimes the stepping must be checked to tell them apart. On x86 there can be at most 16 steppings. Add a steppings bitmask to x86_cpu_id and a X86_MATCH_VENDOR_FAMILY_MODEL_STEPPING_FEATURE macro and support for matching against family/model/stepping. [ bp: Massage. ]

Mark Gross committed 6 years ago

Commit e9d71441 parent ae83d0b3 files · +32 −4Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/mod_devicetable.h+2−0
@@ -663,6 +663,7 @@ struct x86_cpu_id { · 662 unmodified lines
663663 __u16 vendor;
664664 __u16 family;
665665 __u16 model;
666+ __u16 steppings;
666667 __u16 feature; /* bit index */
667668 kernel_ulong_t driver_data;
668669 };
@@ -671,6 +672,7 @@ struct x86_cpu_id { · 2 unmodified lines
671672 #define X86_VENDOR_ANY 0xffff
672673 #define X86_FAMILY_ANY 0
673674 #define X86_MODEL_ANY 0
675+#define X86_STEPPING_ANY 0
674676 #define X86_FEATURE_ANY 0 /* Same as FPU, you can't test for that */
675677
676678 /*