s390/idle: move idle time accounting to account_idle_time_irq()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 6 Feb 2023 13:49:39 +0000 (14:49 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 9 Feb 2023 19:11:22 +0000 (20:11 +0100)
commitc01016299dc7db5c7b86107b3e129a18dd683574
tree60a76d5e3cdbb4c8e4fc2969f33111b3764a3ef4
parent740d63b5a0595508e041cba825c1ae64385fc6d9
s390/idle: move idle time accounting to account_idle_time_irq()

There is no reason to do idle time accounting in arch_cpu_idle().
Do idle time accounting in account_idle_time_irq(), where it belongs
to. The accounted values don't change between account_idle_time_irq() and
arch_cpu_idle(); so the result is the same.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/idle.c