Merge remote-tracking branch 'asoc/topic/tlv320aic32x4' into asoc-next
[deliverable/linux.git] / arch / x86 / lib / cpu.c
CommitLineData
99f925ce
BP
1#include <linux/module.h>
2
3unsigned int x86_family(unsigned int sig)
4{
5 unsigned int x86;
6
7 x86 = (sig >> 8) & 0xf;
8
9 if (x86 == 0xf)
10 x86 += (sig >> 20) & 0xff;
11
12 return x86;
13}
14EXPORT_SYMBOL_GPL(x86_family);
15
16unsigned int x86_model(unsigned int sig)
17{
18 unsigned int fam, model;
19
20 fam = x86_family(sig);
21
22 model = (sig >> 4) & 0xf;
23
24 if (fam >= 0x6)
25 model += ((sig >> 16) & 0xf) << 4;
26
27 return model;
28}
29EXPORT_SYMBOL_GPL(x86_model);
30
31unsigned int x86_stepping(unsigned int sig)
32{
33 return sig & 0xf;
34}
35EXPORT_SYMBOL_GPL(x86_stepping);
This page took 0.106072 seconds and 5 git commands to generate.