16 lines
511 B
Diff
16 lines
511 B
Diff
|
diff -up conky-1.6.0/src/linux.c.rdtsc conky-1.6.0/src/linux.c
|
||
|
--- conky-1.6.0/src/linux.c.rdtsc 2008-07-15 03:02:37.000000000 +0200
|
||
|
+++ conky-1.6.0/src/linux.c 2008-07-22 13:56:04.000000000 +0200
|
||
|
@@ -1061,9 +1061,11 @@ void get_adt746x_cpu(char *p_client_buff
|
||
|
unsigned long long int rdtsc(void)
|
||
|
{
|
||
|
unsigned long long int x;
|
||
|
+ unsigned int a, d;
|
||
|
|
||
|
- __asm__ volatile(".byte 0x0f, 0x31":"=A" (x));
|
||
|
- return x;
|
||
|
+ __asm__ volatile(".byte 0x0f, 0x31":"=a" (a),"=d" (d));
|
||
|
+ x = d;
|
||
|
+ return x << 32 | a;
|
||
|
}
|
||
|
#endif
|