summaryrefslogtreecommitdiff
path: root/lib/sbi_system.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-04-11 03:41:52 +0300
committerAnup Patel <anup@brainfault.org>2019-04-24 07:19:46 +0300
commit10baa64c02f6746fd506136e0693aa2d592574fb (patch)
treeda00e48f0cb5d1434cbc7c31bb6ca15efa7d4564 /lib/sbi_system.c
parentfbf986ac2a0b926ae97e6796b87e366610d7589e (diff)
downloadopensbi-10baa64c02f6746fd506136e0693aa2d592574fb.tar.xz
all: run clang-format and update checked-in files
Noisy commit, no functional changes. Generated with an current upstream clang-format and: clang-format -i $(find . -name \*.[ch]) Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'lib/sbi_system.c')
-rw-r--r--lib/sbi_system.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/sbi_system.c b/lib/sbi_system.c
index b373828..3381d40 100644
--- a/lib/sbi_system.c
+++ b/lib/sbi_system.c
@@ -15,26 +15,24 @@
int sbi_system_early_init(struct sbi_scratch *scratch, bool cold_boot)
{
- return sbi_platform_early_init(sbi_platform_ptr(scratch),
- cold_boot);
+ return sbi_platform_early_init(sbi_platform_ptr(scratch), cold_boot);
}
int sbi_system_final_init(struct sbi_scratch *scratch, bool cold_boot)
{
- return sbi_platform_final_init(sbi_platform_ptr(scratch),
- cold_boot);
+ return sbi_platform_final_init(sbi_platform_ptr(scratch), cold_boot);
}
-void __attribute__((noreturn)) sbi_system_reboot(struct sbi_scratch *scratch,
- u32 type)
+void __attribute__((noreturn))
+sbi_system_reboot(struct sbi_scratch *scratch, u32 type)
{
sbi_platform_system_reboot(sbi_platform_ptr(scratch), type);
sbi_hart_hang();
}
-void __attribute__((noreturn)) sbi_system_shutdown(struct sbi_scratch *scratch,
- u32 type)
+void __attribute__((noreturn))
+sbi_system_shutdown(struct sbi_scratch *scratch, u32 type)
{
/* First try the platform-specific method */
sbi_platform_system_shutdown(sbi_platform_ptr(scratch), type);