parisc/power: Fix power soft-off button emulation on qemu
authorHelge Deller <deller@gmx.de>
Wed, 3 Jan 2024 20:17:23 +0000 (21:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:18:52 +0000 (16:18 -0800)
commit46942efb9e8761095b5df3d053052469a0912885
tree897d34f03e4089838ec7236b6232497a0dcbea74
parent3583edd4d7861c4d913b3a3b8394b5342f3ef4a6
parisc/power: Fix power soft-off button emulation on qemu

commit 6472036581f947109b20664121db1d143e916f0b upstream.

Make sure to start the kthread to check the power button on qemu as
well if the power button address was provided.
This fixes the qemu built-in system_powerdown runtime command.

Fixes: d0c219472980 ("parisc/power: Add power soft-off when running on qemu")
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # v6.0+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parisc/power.c