1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _S390_VTIME_H 3 #define _S390_VTIME_H 4 5 static inline void update_timer_sys(void) 6 { 7 S390_lowcore.system_timer += S390_lowcore.last_update_timer - S390_lowcore.exit_timer; 8 S390_lowcore.user_timer += S390_lowcore.exit_timer - S390_lowcore.sys_enter_timer; 9 S390_lowcore.last_update_timer = S390_lowcore.sys_enter_timer; 10 } 11 12 static inline void update_timer_mcck(void) 13 { 14 S390_lowcore.system_timer += S390_lowcore.last_update_timer - S390_lowcore.exit_timer; 15 S390_lowcore.user_timer += S390_lowcore.exit_timer - S390_lowcore.mcck_enter_timer; 16 S390_lowcore.last_update_timer = S390_lowcore.mcck_enter_timer; 17 } 18 19 #endif /* _S390_VTIME_H */ 20