summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/sbi.c
blob: f6c7c3e82d2880080c03cb7e250df8c19b5e5c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: GPL-2.0-only

#include <linux/init.h>
#include <linux/pm.h>
#include <asm/sbi.h>

static void sbi_power_off(void)
{
	sbi_shutdown();
}

static int __init sbi_init(void)
{
	pm_power_off = sbi_power_off;
	return 0;
}
early_initcall(sbi_init);