powerpc/e500/qemu-e500: allow core to idle without waiting
Subsystems (2)
PATCH 1/1 powerpc/e500/qemu-e500: allow core to idle without waiting
From: Tobias Waldekranz <[email protected]>
This means an idle guest won't needlessly consume an entire core on the host, waiting for work to show up.
--- arch/powerpc/platforms/85xx/qemu_e500.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/powerpc/platforms/85xx/qemu_e500.c +5 -0
@@ -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 };
Signature · 1 line
2.25.1
Scott Wood
maintainerQuoted 17 lines · Joachim Wiberg
From: Tobias Waldekranz <[email protected]>
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 <[email protected]>Signed-off-by Joachim Wiberg <[email protected]>---
arch/powerpc/platforms/85xx/qemu_e500.c | 5 +++++1 file changed, 5 insertions(+)arch/powerpc/platforms/85xx/qemu_e500.c +0
-0
arch/powerpc/platforms/85xx/qemu_e500.c define_machine(qemu_e500) { · line 75
Quoted 9 lines
arch/powerpc/platforms/85xx/qemu_e500.c +5
-0@@ -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 };
In the 32-bit case shouldn't this already be getting added by setup_power_save()? Though I see corenet_generic.c doing the same thing...
-Scott
Quoted 10 lines · Scott Wood
Quoted 7 lines · Joachim Wiberg
[snip]
arch/powerpc/platforms/85xx/qemu_e500.c +5
-0+#ifdef CONFIG_PPC64 + .power_save = book3e_idle, +#else + .power_save = e500_idle, +#endif };
In the 32-bit case shouldn't this already be getting added by
setup_power_save()? Though I seecorenet_generic.cdoing the same thing...
We went for consistency with the corenet_generic.c setup, which as you noted does the same thing.
Best regards
/Joachim
Quoted 17 lines · Joachim Wiberg
From: Tobias Waldekranz <[email protected]>
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 <[email protected]>Signed-off-by Joachim Wiberg <[email protected]>---
arch/powerpc/platforms/85xx/qemu_e500.c | 5 +++++1 file changed, 5 insertions(+)arch/powerpc/platforms/85xx/qemu_e500.c +0
-0
arch/powerpc/platforms/85xx/qemu_e500.c define_machine(qemu_e500) { · line 75
Quoted 9 lines
arch/powerpc/platforms/85xx/qemu_e500.c +5
-0@@ -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 };
-Scott
Michael Ellerman
AppliedQuoted 6 lines · Joachim Wiberg
From: Tobias Waldekranz <[email protected]>
This means an idle guest won't needlessly consume an entire core on the host, waiting for work to show up.
Applied to powerpc/next.
[1/1] powerpc/e500/qemu-e500: allow core to idle without waiting
https://git.kernel.org/powerpc/c/f529edd1b69ddf832c3257dcd34e15100038d6b7
cheers