mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-18 12:45:08 +00:00
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>
This commit is contained in:
parent
530f639f1e
commit
cc2c7db28f
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,11 @@ static inline int store_tod_clock_ext_cc(union tod_clock *clk)
|
||||||
return cc;
|
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)
|
static inline void set_clock_comparator(__u64 time)
|
||||||
{
|
{
|
||||||
asm volatile("sckc %0" : : "Q" (time));
|
asm volatile("sckc %0" : : "Q" (time));
|
||||||
|
|
Loading…
Add table
Reference in a new issue