reboot: Use power off rather than busy spinning when halt is requested
authorpopcornmix <popcornmix@gmail.com>
Tue, 5 Apr 2016 18:40:12 +0000 (19:40 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:32:34 +0000 (16:32 +0100)
arch/arm/kernel/reboot.c

index bb18ed0..a8595ab 100644 (file)
@@ -102,9 +102,7 @@ void machine_shutdown(void)
  */
 void machine_halt(void)
 {
-       local_irq_disable();
-       smp_send_stop();
-       while (1);
+       machine_power_off();
 }
 
 /*