mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-10-24 04:32:05 +01:00
include: sbi_platform: Combine reboot and shutdown into one callback
We can achieve shutdown, cold reboot, and warm reboot using just one sbi_platform callback so we combine system_reboot() and system_shutdown() callbacks into one system_reset() callback. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
1 parent
1bb00ab3ae
commit
a9eac67ad0
15 files changed
+46
-138
No files matched your search
@@ -12,8 +12,6 @@
|
||||
|
||||
#include <sbi/sbi_types.h>
|
||||
|
||||
void __noreturn sbi_system_reboot(u32 type);
|
||||
|
||||
void __noreturn sbi_system_shutdown(u32 type);
|
||||
void __noreturn sbi_system_reset(u32 platform_reset_type);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user