aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-02-08 13:58:47 +0100
committerVasily Gorbik <gor@linux.ibm.com>2021-02-13 17:17:54 +0100
commitcc2c7db28f7924e9133adc06293a74838ddee59a (patch)
treee3d6ef0e69fd878b98533ca5e1e69a02706ad508
parents390/time: rename store_tod_clock_ext() and use union tod_clock (diff)
downloadlinux-dev-cc2c7db28f7924e9133adc06293a74838ddee59a.tar.xz
linux-dev-cc2c7db28f7924e9133adc06293a74838ddee59a.zip
s390/time: introduce new store_tod_clock_ext()
Introduce new store_tod_clock_ext() function, which is the same like store_tod_clock_ext_cc() except that it doesn't return a condition code. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
-rw-r--r--arch/s390/include/asm/timex.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h
index 24964579684b..7bfdcae34515 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));