1 #include <linux/types.h>
2 #include <linux/export.h>
4 unsigned int x86_family(unsigned int sig
)
8 x86
= (sig
>> 8) & 0xf;
11 x86
+= (sig
>> 20) & 0xff;
15 EXPORT_SYMBOL_GPL(x86_family
);
17 unsigned int x86_model(unsigned int sig
)
19 unsigned int fam
, model
;
21 fam
= x86_family(sig
);
23 model
= (sig
>> 4) & 0xf;
26 model
+= ((sig
>> 16) & 0xf) << 4;
30 EXPORT_SYMBOL_GPL(x86_model
);
32 unsigned int x86_stepping(unsigned int sig
)
36 EXPORT_SYMBOL_GPL(x86_stepping
);