1 From 7b4fcaaaf4d7081c4c1be24b4961f59e14e2af6c Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Tue, 5 Apr 2016 19:40:12 +0100
4 Subject: [PATCH 0074/1085] reboot: Use power off rather than busy spinning
7 reboot: Use power off rather than busy spinning when halt is requested
9 Busy spinning after halt is dumb
10 We've previously applied this patch to arch/arm
11 but it is currenltly missing in arch/arm64
13 Pi4 after "sudo halt" uses 520mA
14 Pi4 after "sudo shutdown now" uses 310mA
16 Make them both use the lower powered option
18 Signed-off-by: Dom Cobley <popcornmix@gmail.com>
20 arch/arm/kernel/reboot.c | 4 +---
21 arch/arm64/kernel/process.c | 4 +---
22 2 files changed, 2 insertions(+), 6 deletions(-)
24 --- a/arch/arm/kernel/reboot.c
25 +++ b/arch/arm/kernel/reboot.c
26 @@ -102,9 +102,7 @@ void machine_shutdown(void)
28 void machine_halt(void)
30 - local_irq_disable();
33 + machine_power_off();
37 --- a/arch/arm64/kernel/process.c
38 +++ b/arch/arm64/kernel/process.c
39 @@ -96,9 +96,7 @@ void machine_shutdown(void)
41 void machine_halt(void)
43 - local_irq_disable();
46 + machine_power_off();