cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

reset.c (367B)


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