diff options
author | Tobias Waldekranz <tobias@waldekranz.com> | 2022-01-12 12:24:59 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-01-31 03:45:24 +0100 |
commit | f529edd1b69ddf832c3257dcd34e15100038d6b7 (patch) | |
tree | af99e3fa538fc4ff70bbdc1f3ef930395b86d44b /arch/powerpc/platforms/85xx | |
parent | powerpc: add link stack flush mitigation status in debugfs. (diff) | |
download | linux-f529edd1b69ddf832c3257dcd34e15100038d6b7.tar.xz linux-f529edd1b69ddf832c3257dcd34e15100038d6b7.zip |
powerpc/e500/qemu-e500: allow core to idle without waiting
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
Diffstat (limited to 'arch/powerpc/platforms/85xx')
-rw-r--r-- | arch/powerpc/platforms/85xx/qemu_e500.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/85xx/qemu_e500.c b/arch/powerpc/platforms/85xx/qemu_e500.c index a4127b0b161f..4c4d577effd9 100644 --- a/arch/powerpc/platforms/85xx/qemu_e500.c +++ b/arch/powerpc/platforms/85xx/qemu_e500.c @@ -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 }; |