2
* Copyright 2010 Tilera Corporation. All Rights Reserved.
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation, version 2.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11
* NON INFRINGEMENT. See the GNU General Public License for
15
#include <linux/stddef.h>
16
#include <linux/reboot.h>
17
#include <linux/smp.h>
20
#include <asm/setup.h>
21
#include <hv/hypervisor.h>
24
#define smp_send_stop()
27
void machine_halt(void)
30
arch_local_irq_disable_all();
35
void machine_power_off(void)
38
arch_local_irq_disable_all();
43
void machine_restart(char *cmd)
45
arch_local_irq_disable_all();
47
hv_restart((HV_VirtAddr) "vmlinux", (HV_VirtAddr) cmd);
50
/* No interesting distinction to be made here. */
51
void (*pm_power_off)(void) = NULL;