0229-reboot-Use-power-off-rather-than-busy-spinning-when-.patch 592 B

12345678910111213141516171819202122232425
  1. From 1ddd9795a4933619754574c0f9d93542ee72d70d 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 229/381] reboot: Use power off rather than busy spinning when
  5. halt is requested
  6. ---
  7. arch/arm/kernel/reboot.c | 6 +-----
  8. 1 file changed, 1 insertion(+), 5 deletions(-)
  9. --- a/arch/arm/kernel/reboot.c
  10. +++ b/arch/arm/kernel/reboot.c
  11. @@ -102,11 +102,7 @@ void machine_shutdown(void)
  12. */
  13. void machine_halt(void)
  14. {
  15. - local_irq_disable();
  16. - smp_send_stop();
  17. -
  18. - local_irq_disable();
  19. - while (1);
  20. + machine_power_off();
  21. }
  22. /*