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>
This commit is contained in:
Chris Wilson 2013-02-27 22:26:19 +00:00
parent bfc1fda87f
commit a0a2faefde
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}