patch-2.4.19 linux-2.4.19/include/asm-s390/timex.h

Next file: linux-2.4.19/include/asm-s390/uaccess.h
Previous file: linux-2.4.19/include/asm-s390/system.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-s390/timex.h linux-2.4.19/include/asm-s390/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 clk;
+
+	__asm__("stck 0(%0)" : : "a" (&(clk)) : "memory", "cc");
+	return clk;
+}
+
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)