patch-2.4.19 linux-2.4.19/include/asm-s390x/timex.h
Next file: linux-2.4.19/include/asm-s390x/uaccess.h
Previous file: linux-2.4.19/include/asm-s390x/system.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/include/asm-s390x/timex.h
- Orig date:
Mon Feb 25 11:38:13 2002
diff -urN linux-2.4.18/include/asm-s390x/timex.h linux-2.4.19/include/asm-s390x/timex.h
@@ -25,8 +25,16 @@
{
cycles_t cycles;
- __asm__("stck %0" : "=m" (cycles) : : "cc");
+ __asm__("stck 0(%0)" : : "a" (&(cycles)) : "memory", "cc");
return cycles >> 2;
}
+static inline unsigned long long get_clock (void)
+{
+ unsigned long long clock;
+
+ __asm__("stck 0(%0)" : : "a" (&(clock)) : "memory", "cc");
+ return clock;
+}
+
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)