Blame numactl-2.0.2-clearcache-fix.patch
|
Neil Horman |
9e543f |
diff -up numactl-2.0.2/clearcache.c.orig numactl-2.0.2/clearcache.c
|
|
Neil Horman |
9e543f |
--- numactl-2.0.2/clearcache.c.orig 2008-09-29 16:08:38.000000000 -0400
|
|
Neil Horman |
9e543f |
+++ numactl-2.0.2/clearcache.c 2008-09-29 16:08:49.000000000 -0400
|
|
Neil Horman |
9e543f |
@@ -57,7 +57,7 @@ void clearcache(unsigned char *mem, unsi
|
|
Neil Horman |
9e543f |
#if defined(__i386__) || defined(__x86_64__)
|
|
Neil Horman |
9e543f |
unsigned i, cl, eax, feat;
|
|
Neil Horman |
9e543f |
/* get clflush unit and feature */
|
|
Neil Horman |
9e543f |
- asm("cpuid" : "=a" (eax), "=b" (cl), "=d" (feat) : "0" (1) : "cx");
|
|
Neil Horman |
9e543f |
+ asm("cpuid" : "=a" (eax), "=r" (cl), "=d" (feat) : "0" (1) : "cx");
|
|
Neil Horman |
9e543f |
if (!(feat & (1 << 19)))
|
|
Neil Horman |
9e543f |
fallback_clearcache();
|
|
Neil Horman |
9e543f |
cl = ((cl >> 8) & 0xff) * 8;
|