summaryrefslogtreecommitdiffstats
path: root/include/asm-s390
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel1@de.ibm.com>2006-07-17 16:09:42 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2006-07-17 16:09:42 +0200
commit53ba5e09fe37518683ff8b3f28410ce0b9ed2f74 (patch)
treead6a9bab92764cded45b812ea441da73caa54970 /include/asm-s390
parent13ffa927abb74d4365b0e22f186befe4746b5897 (diff)
downloadop-kernel-dev-53ba5e09fe37518683ff8b3f28410ce0b9ed2f74.zip
op-kernel-dev-53ba5e09fe37518683ff8b3f28410ce0b9ed2f74.tar.gz
[S390] get_clock inline assembly.
Add missing volatile to the get_clock / get_cycles inline assemblies to avoid that consecutive calls get optimized away. Signed-off-by: Andreas Krebbel <krebbel1@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390')
-rw-r--r--include/asm-s390/timex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-s390/timex.h b/include/asm-s390/timex.h
index 4848057..5d0332a 100644
--- a/include/asm-s390/timex.h
+++ b/include/asm-s390/timex.h
@@ -19,7 +19,7 @@ static inline cycles_t get_cycles(void)
{
cycles_t cycles;
- __asm__("stck 0(%1)" : "=m" (cycles) : "a" (&cycles) : "cc");
+ __asm__ __volatile__ ("stck 0(%1)" : "=m" (cycles) : "a" (&cycles) : "cc");
return cycles >> 2;
}
@@ -27,7 +27,7 @@ static inline unsigned long long get_clock (void)
{
unsigned long long clk;
- __asm__("stck 0(%1)" : "=m" (clk) : "a" (&clk) : "cc");
+ __asm__ __volatile__ ("stck 0(%1)" : "=m" (clk) : "a" (&clk) : "cc");
return clk;
}
OpenPOWER on IntegriCloud