projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed061b7
)
Blackfin arch: make sure cycles is marked as volatile so gcc doesnt reorder on us
author
Mike Frysinger
<vapier.adi@gmail.com>
Thu, 16 Oct 2008 15:55:41 +0000
(23:55 +0800)
committer
Bryan Wu
<cooloney@kernel.org>
Thu, 16 Oct 2008 15:55:41 +0000
(23:55 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/include/asm/timex.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/include/asm/timex.h
b/arch/blackfin/include/asm/timex.h
index 22b0806161bb614b2179c7ec1eee002a0255779e..248aeb06680527f49dd24d3e559295ac9fdf78ed 100644
(file)
--- a/
arch/blackfin/include/asm/timex.h
+++ b/
arch/blackfin/include/asm/timex.h
@@
-16,7
+16,7
@@
typedef unsigned long long cycles_t;
static inline cycles_t get_cycles(void)
{
unsigned long tmp, tmp2;
- __asm__("%0 = cycles; %1 = cycles2;" : "=d"(tmp), "=d"(tmp2));
+ __asm__
__volatile__
("%0 = cycles; %1 = cycles2;" : "=d"(tmp), "=d"(tmp2));
return tmp | ((cycles_t)tmp2 << 32);
}