// SPDX-License-Identifier: GPL-2.0-only1/*2* Copyright (C) 2011-2012 Synopsys, Inc. (www.synopsys.com)3*/45#include <linux/kernel.h>6#include <linux/printk.h>7#include <linux/reboot.h>8#include <linux/pm.h>910void machine_halt(void)11{12/* Halt the processor */13__asm__ __volatile__("flag 1\n");14}1516void machine_restart(char *__unused)17{18/* Soft reset : jump to reset vector */19pr_info("Put your restart handler here\n");20machine_halt();21}2223void machine_power_off(void)24{25/* FIXME :: power off ??? */26machine_halt();27}2829void (*pm_power_off) (void) = NULL;30EXPORT_SYMBOL(pm_power_off);313233