From 6472a2dcc4274452bb46fb5a0d968a1c1ed772ee Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Mon, 13 Feb 2023 12:35:19 +0100 Subject: s390/irq,idle: simplify idle check Use the per-cpu CIF_ENABLED_WAIT flag to decide if an interrupt occurred while a cpu was idle, instead of checking two conditions within the old psw. Also move clearing of the CIF_ENABLED_WAIT bit to the early interrupt handler, which in turn makes arch_vcpu_is_preempted() also a bit more precise, since the flag is now cleared before interrupt handlers have been called. Reviewed-by: Sven Schnelle Signed-off-by: Heiko Carstens --- arch/s390/include/asm/idle.h | 1 - 1 file changed, 1 deletion(-) (limited to 'arch/s390/include/asm/idle.h') diff --git a/arch/s390/include/asm/idle.h b/arch/s390/include/asm/idle.h index af72a2b35758..09f763b9eb40 100644 --- a/arch/s390/include/asm/idle.h +++ b/arch/s390/include/asm/idle.h @@ -23,6 +23,5 @@ extern struct device_attribute dev_attr_idle_count; extern struct device_attribute dev_attr_idle_time_us; void psw_idle(struct s390_idle_data *data, unsigned long psw_mask); -void psw_idle_exit(void); #endif /* _S390_IDLE_H */ -- cgit v1.2.3