diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h index 24964579684b1..7bfdcae345155 100644 --- a/arch/s390/include/asm/timex.h +++ b/arch/s390/include/asm/timex.h @@ -65,6 +65,11 @@ static inline int store_tod_clock_ext_cc(union tod_clock *clk) return cc; } +static inline void store_tod_clock_ext(union tod_clock *tod) +{ + asm volatile("stcke %0" : "=Q" (*tod) : : "cc"); +} + static inline void set_clock_comparator(__u64 time) { asm volatile("sckc %0" : : "Q" (time));