s390/idle: fix accounting with machine checks
authorSven Schnelle <svens@linux.ibm.com>
Sun, 6 Dec 2020 09:47:47 +0000 (10:47 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 9 Dec 2020 20:02:07 +0000 (21:02 +0100)
commit454efcf82ea17d7efeb86ebaa20775a21ec87d27
tree5385d9d95e68905dd0ee4aa433f04a3a290e0635
parente259b3fafa7de362b04ecd86e7fa9a9e9273e5fb
s390/idle: fix accounting with machine checks

When a machine check interrupt is triggered during idle, the code
is using the async timer/clock for idle time calculation. It should use
the machine check enter timer/clock which is passed to the macro.

Fixes: 0b0ed657fe00 ("s390: remove critical section cleanup from entry.S")
Cc: <stable@vger.kernel.org> # 5.8
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/entry.S