reset.c 367 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
  4. */
  5. #include <linux/smp.h>
  6. #include <asm/hexagon_vm.h>
  7. void machine_power_off(void)
  8. {
  9. smp_send_stop();
  10. __vmstop();
  11. }
  12. void machine_halt(void)
  13. {
  14. }
  15. void machine_restart(char *cmd)
  16. {
  17. }
  18. void (*pm_power_off)(void) = NULL;
  19. EXPORT_SYMBOL(pm_power_off);