]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/e500/qemu-e500: allow core to idle without waiting
authorTobias Waldekranz <tobias@waldekranz.com>
Wed, 12 Jan 2022 11:24:59 +0000 (12:24 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 31 Jan 2022 02:45:24 +0000 (13:45 +1100)
This means an idle guest won't needlessly consume an entire core on
the host, waiting for work to show up.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Acked-by: Scott Wood <oss@buserror.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220112112459.1033754-1-troglobit@gmail.com
arch/powerpc/platforms/85xx/qemu_e500.c

index a4127b0b161f7f773bd82a19b413dd237fe08473..4c4d577effd93a1ce5678762321fd04db427afbe 100644 (file)
@@ -67,4 +67,9 @@ define_machine(qemu_e500) {
        .get_irq                = mpic_get_coreint_irq,
        .calibrate_decr         = generic_calibrate_decr,
        .progress               = udbg_progress,
+#ifdef CONFIG_PPC64
+       .power_save             = book3e_idle,
+#else
+       .power_save             = e500_idle,
+#endif
 };