1 /* SPDX-License-Identifier: GPL-2.0 */
5 #define __ARCH_HAS_VTIME_TASK_SWITCH
7 static inline void update_timer_sys(void)
9 S390_lowcore.system_timer += S390_lowcore.last_update_timer - S390_lowcore.exit_timer;
10 S390_lowcore.user_timer += S390_lowcore.exit_timer - S390_lowcore.sys_enter_timer;
11 S390_lowcore.last_update_timer = S390_lowcore.sys_enter_timer;
14 static inline void update_timer_mcck(void)
16 S390_lowcore.system_timer += S390_lowcore.last_update_timer - S390_lowcore.exit_timer;
17 S390_lowcore.user_timer += S390_lowcore.exit_timer - S390_lowcore.mcck_enter_timer;
18 S390_lowcore.last_update_timer = S390_lowcore.mcck_enter_timer;
21 #endif /* _S390_VTIME_H */