reboot: Use power off rather than busy spinning when halt is requested

reboot: Use power off rather than busy spinning when halt is requested

Busy spinning after halt is dumb
We've previously applied this patch to arch/arm
but it is currenltly missing in arch/arm64

Pi4 after "sudo halt" uses 520mA
Pi4 after "sudo shutdown now" uses 310mA

Make them both use the lower powered option

Signed-off-by: Dom Cobley <popcornmix@gmail.com>
This commit is contained in:
popcornmix
2016-04-05 19:40:12 +01:00
committed by Dom Cobley
parent 1cd99f2333
commit 07d5877ed2
2 changed files with 2 additions and 6 deletions

View File

@@ -102,9 +102,7 @@ void machine_shutdown(void)
*/
void machine_halt(void)
{
local_irq_disable();
smp_send_stop();
while (1);
machine_power_off();
}
/*

View File

@@ -98,9 +98,7 @@ void machine_shutdown(void)
*/
void machine_halt(void)
{
local_irq_disable();
smp_send_stop();
while (1);
machine_power_off();
}
/*