summaryrefslogtreecommitdiff
path: root/arch/s390/kernel/idle.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2023-02-13 14:35:19 +0300
committerHeiko Carstens <hca@linux.ibm.com>2023-02-15 13:07:01 +0300
commit6472a2dcc4274452bb46fb5a0d968a1c1ed772ee (patch)
tree9af7314210b1e841eb15a485abe6e3320c49ab91 /arch/s390/kernel/idle.c
parentf96f41aae2b5bd34d32f462c7b45c0f4fad2b59e (diff)
downloadlinux-6472a2dcc4274452bb46fb5a0d968a1c1ed772ee.tar.xz
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 <svens@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/idle.c')
-rw-r--r--arch/s390/kernel/idle.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/s390/kernel/idle.c b/arch/s390/kernel/idle.c
index dd8351e76539..1a1a419ed846 100644
--- a/arch/s390/kernel/idle.c
+++ b/arch/s390/kernel/idle.c
@@ -28,7 +28,6 @@ void account_idle_time_irq(void)
u64 cycles_new[8];
int i;
- clear_cpu_flag(CIF_ENABLED_WAIT);
if (smp_cpu_mtid) {
stcctm(MT_DIAG, smp_cpu_mtid, cycles_new);
for (i = 0; i < smp_cpu_mtid; i++)