Skip to content

Commit f529edd

Browse files
wkzmpe
authored andcommitted
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 <[email protected]> Signed-off-by: Joachim Wiberg <[email protected]> Acked-by: Scott Wood <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b2a6f60 commit f529edd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/powerpc/platforms/85xx/qemu_e500.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,9 @@ define_machine(qemu_e500) {
6767
.get_irq = mpic_get_coreint_irq,
6868
.calibrate_decr = generic_calibrate_decr,
6969
.progress = udbg_progress,
70+
#ifdef CONFIG_PPC64
71+
.power_save = book3e_idle,
72+
#else
73+
.power_save = e500_idle,
74+
#endif
7075
};

0 commit comments

Comments
 (0)