summaryrefslogtreecommitdiff
path: root/src/sna/sna_cpu.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-02-27 22:26:19 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-02-27 22:27:02 +0000
commita0a2faefdefbea63669dfeb49f7e701196ab5631 (patch)
tree291711c2a23234ebd0f3e8f3c25e01e0631959c4 /src/sna/sna_cpu.c
parentbfc1fda87f442890919100473b819240f9c30c44 (diff)
sna: Fix syntax for __get_cpuid()
It is a function not a macro like cpuid() and takes pointers to its arguments! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_cpu.c')
-rw-r--r--src/sna/sna_cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_cpu.c b/src/sna/sna_cpu.c
index ce69a39c..9e3d9657 100644
--- a/src/sna/sna_cpu.c
+++ b/src/sna/sna_cpu.c
@@ -44,7 +44,7 @@ unsigned sna_cpu_detect(void)
unsigned int eax, ebx, ecx, edx;
unsigned features = 0;
- if (__get_cpuid(1, eax, ebx, ecx, edx)) {
+ if (__get_cpuid(1, &eax, &ebx, &ecx, &edx)) {
if (eax & bit_SSE3)
features |= SSE3;
@@ -70,7 +70,7 @@ unsigned sna_cpu_detect(void)
features |= SSE2;
}
- if (__get_cpuid(7, eax, ebx, ecx, edx)) {
+ if (__get_cpuid(7, &eax, &ebx, &ecx, &edx)) {
if (eax & bit_AVX2)
features |= AVX2;
}