1 /* SPDX-License-Identifier: GPL-2.0 */
5 static inline void update_timer_sys(void)
7 struct lowcore *lc = get_lowcore();
9 lc->system_timer += lc->last_update_timer - lc->exit_timer;
10 lc->user_timer += lc->exit_timer - lc->sys_enter_timer;
11 lc->last_update_timer = lc->sys_enter_timer;
14 static inline void update_timer_mcck(void)
16 struct lowcore *lc = get_lowcore();
18 lc->system_timer += lc->last_update_timer - lc->exit_timer;
19 lc->user_timer += lc->exit_timer - lc->mcck_enter_timer;
20 lc->last_update_timer = lc->mcck_enter_timer;
23 #endif /* _S390_VTIME_H */