diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2020-03-09 06:52:41 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-10 07:57:28 +0300 |
commit | 650c0e525ce60e80b6756aa8cc4eeae5b20ccbd8 (patch) | |
tree | 579e92ff39fa780818fe483337850d28df5ddb15 /lib/sbi/sbi_hart.c | |
parent | 6e87507db6ce7be39ccccb33d6283814f0283c09 (diff) | |
download | opensbi-650c0e525ce60e80b6756aa8cc4eeae5b20ccbd8.tar.xz |
lib: sbi: Fix coding style issues
This fixes various coding style issues found in the SBI codes.
No functional changes.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_hart.c')
-rw-r--r-- | lib/sbi/sbi_hart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c index bce2fb5..c00e16a 100644 --- a/lib/sbi/sbi_hart.c +++ b/lib/sbi/sbi_hart.c @@ -75,7 +75,7 @@ static int delegate_traps(struct sbi_scratch *scratch, u32 hartid) unsigned long interrupts, exceptions; if (!misa_extension('S')) - /* No delegation possible as mideleg does not exist*/ + /* No delegation possible as mideleg does not exist */ return 0; /* Send M-mode interrupts and most exceptions to S-mode */ @@ -342,7 +342,7 @@ sbi_hart_switch_mode(unsigned long arg0, unsigned long arg1, __builtin_unreachable(); } -static spinlock_t avail_hart_mask_lock = SPIN_LOCK_INITIALIZER; +static spinlock_t avail_hart_mask_lock = SPIN_LOCK_INITIALIZER; static volatile unsigned long avail_hart_mask = 0; void sbi_hart_mark_available(u32 hartid) |