s390/idle: fix accounting with machine checks
authorSven Schnelle <svens@linux.ibm.com>
Sun, 6 Dec 2020 09:47:47 +0000 (10:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:54:08 +0000 (11:54 +0100)
commit24d9a8ef1f92277e2216ba73f8c087160a7b42f3
treec30c2d06375705130b90f170f2a81e635cac7177
parentd5d21549d7eb73c3eeeef1e60d0c53ac2e61ad36
s390/idle: fix accounting with machine checks

commit 454efcf82ea17d7efeb86ebaa20775a21ec87d27 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kernel/entry.S