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

12345678910111213141516171819202122232425
  1. From e7c6a88f381479abcefee8313e183b56574ca529 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] reboot: Use power off rather than busy spinning when halt is
  5. 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. /*