diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-27 12:08:34 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 13:32:55 +0530 |
commit | 0a28ea54dce4140593a55dd61606437595ebe53d (patch) | |
tree | 3e9d366dc83b1b33ca46cb8ce4c21e2be79c4222 /lib/sbi/sbi_ecall_legacy.c | |
parent | ec0d80f5b4928ebedee8881be47f8c430db667af (diff) |
include: sbi_timer: Remove scratch parameter from most funcitons
This patch removes scratch parameter from most sbi_timer functions.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_ecall_legacy.c')
-rw-r--r-- | lib/sbi/sbi_ecall_legacy.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/sbi/sbi_ecall_legacy.c b/lib/sbi/sbi_ecall_legacy.c index 36d6f17..8f32027 100644 --- a/lib/sbi/sbi_ecall_legacy.c +++ b/lib/sbi/sbi_ecall_legacy.c @@ -15,7 +15,6 @@ #include <sbi/sbi_error.h> #include <sbi/sbi_hsm.h> #include <sbi/sbi_ipi.h> -#include <sbi/sbi_scratch.h> #include <sbi/sbi_system.h> #include <sbi/sbi_timer.h> #include <sbi/sbi_tlb.h> @@ -47,16 +46,14 @@ static int sbi_ecall_legacy_handler(unsigned long extid, unsigned long funcid, int ret = 0; struct sbi_tlb_info tlb_info; u32 source_hart = current_hartid(); - struct sbi_scratch *scratch = sbi_scratch_thishart_ptr(); ulong hmask = 0; switch (extid) { case SBI_EXT_0_1_SET_TIMER: #if __riscv_xlen == 32 - sbi_timer_event_start(scratch, - (((u64)args[1] << 32) | (u64)args[0])); + sbi_timer_event_start((((u64)args[1] << 32) | (u64)args[0])); #else - sbi_timer_event_start(scratch, (u64)args[0]); + sbi_timer_event_start((u64)args[0]); #endif break; case SBI_EXT_0_1_CONSOLE_PUTCHAR: |