Skip to content

Commit 361b309

Browse files
committed
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 <[email protected]>
1 parent 64709c6 commit 361b309

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

arch/arm/kernel/reboot.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ void machine_shutdown(void)
102102
*/
103103
void machine_halt(void)
104104
{
105-
local_irq_disable();
106-
smp_send_stop();
107-
while (1);
105+
machine_power_off();
108106
}
109107

110108
/*

arch/arm64/kernel/process.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ void machine_shutdown(void)
9898
*/
9999
void machine_halt(void)
100100
{
101-
local_irq_disable();
102-
smp_send_stop();
103-
while (1);
101+
machine_power_off();
104102
}
105103

106104
/*

0 commit comments

Comments
 (0)