__ARCH_HAS_VTIME_TASK_SWITCH macro is not used anymore. Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Acked-by: Heiko Carstens <hca@linux.ibm.com> Acked-by: Nicholas Piggin <npiggin@gmail.com> Link: https://lore.kernel.org/r/b1055852eab0ffea33ad16c92d6a825c83037c3e.1712760275.git.agordeev@linux.ibm.com
19 lines
680 B
C
19 lines
680 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _S390_VTIME_H
|
|
#define _S390_VTIME_H
|
|
|
|
static inline void update_timer_sys(void)
|
|
{
|
|
S390_lowcore.system_timer += S390_lowcore.last_update_timer - S390_lowcore.exit_timer;
|
|
S390_lowcore.user_timer += S390_lowcore.exit_timer - S390_lowcore.sys_enter_timer;
|
|
S390_lowcore.last_update_timer = S390_lowcore.sys_enter_timer;
|
|
}
|
|
|
|
static inline void update_timer_mcck(void)
|
|
{
|
|
S390_lowcore.system_timer += S390_lowcore.last_update_timer - S390_lowcore.exit_timer;
|
|
S390_lowcore.user_timer += S390_lowcore.exit_timer - S390_lowcore.mcck_enter_timer;
|
|
S390_lowcore.last_update_timer = S390_lowcore.mcck_enter_timer;
|
|
}
|
|
|
|
#endif /* _S390_VTIME_H */
|