]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/x86/lib/cpu.c
19f707992db22b3d2fdc5f8c9be85f63bf7aeb93
1 #include <linux/types.h>
2 #include <linux/export.h>
5 unsigned int x86_family(unsigned int sig
)
9 x86
= (sig
>> 8) & 0xf;
12 x86
+= (sig
>> 20) & 0xff;
16 EXPORT_SYMBOL_GPL(x86_family
);
18 unsigned int x86_model(unsigned int sig
)
20 unsigned int fam
, model
;
22 fam
= x86_family(sig
);
24 model
= (sig
>> 4) & 0xf;
27 model
+= ((sig
>> 16) & 0xf) << 4;
31 EXPORT_SYMBOL_GPL(x86_model
);
33 unsigned int x86_stepping(unsigned int sig
)
37 EXPORT_SYMBOL_GPL(x86_stepping
);