aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/kernel/power.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv64/kernel/power.c')
-rw-r--r--arch/riscv64/kernel/power.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/riscv64/kernel/power.c b/arch/riscv64/kernel/power.c
index 49fc9c5..21e4957 100644
--- a/arch/riscv64/kernel/power.c
+++ b/arch/riscv64/kernel/power.c
@@ -49,3 +49,9 @@ stat_t poweroff(enum poweroff_type type)
return ERR_INVAL;
}
+
+stat_t sleep()
+{
+ sbi_hart_stop();
+ return ERR_MISC;
+}