Commit 69ebd261 authored by Kanoj Sarcar's avatar Kanoj Sarcar Committed by David S. Miller

get_cycles() needs to be defined

as volatile instruction set, else compiler
code moves it out of loops.
parent cee48bdc
......@@ -16,7 +16,7 @@
typedef unsigned long cycles_t;
#define get_cycles() \
({ cycles_t ret; \
__asm__("rd %%tick, %0" : "=r" (ret)); \
__asm__ __volatile__("rd %%tick, %0" : "=r" (ret)); \
ret; \
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment