OSDN Git Service

target/ppc: move power-saving interrupt masking out of cpu_has_work_POWER7
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Tue, 11 Oct 2022 20:48:24 +0000 (17:48 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 28 Oct 2022 16:15:22 +0000 (13:15 -0300)
commitb34d358a212908326a43216162e90934015b02e7
tree7ad4d9d772efc9cbd63f1427cbc921dbf3034bb4
parent3f34e809ac856831949843d2adc45fab00f8b244
target/ppc: move power-saving interrupt masking out of cpu_has_work_POWER7

Move the interrupt masking logic out of cpu_has_work_POWER7 in a new
method, p7_interrupt_powersave, that only returns an interrupt if it can
wake the processor from power-saving mode.

Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Message-Id: <20221011204829.1641124-25-matheus.ferst@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/cpu_init.c