diff options
author | Andrew Jones <ajones@ventanamicro.com> | 2023-12-20 17:00:14 +0100 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-12-30 11:25:03 +0530 |
commit | 323925ed6dbb0ed877047b28fae4152527cc63db (patch) | |
tree | d22cf639397eaedd990f55d65c89fed22174db4d /arch/riscv/kernel/time.c | |
parent | 4c460eb369514d53383a7c6ba1aefbca4914c68b (diff) |
RISC-V: paravirt: Add skeleton for pv-time support
Add the files and functions needed to support paravirt time on
RISC-V. Also include the common code needed for the first
application of pv-time, which is steal-time. In the next
patches we'll complete the functions to fully enable steal-time
support.
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/kernel/time.c')
-rw-r--r-- | arch/riscv/kernel/time.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/kernel/time.c b/arch/riscv/kernel/time.c index 23641e82a9df..ba3477197789 100644 --- a/arch/riscv/kernel/time.c +++ b/arch/riscv/kernel/time.c @@ -12,6 +12,7 @@ #include <asm/sbi.h> #include <asm/processor.h> #include <asm/timex.h> +#include <asm/paravirt.h> unsigned long riscv_timebase __ro_after_init; EXPORT_SYMBOL_GPL(riscv_timebase); @@ -45,4 +46,6 @@ void __init time_init(void) timer_probe(); tick_setup_hrtimer_broadcast(); + + pv_time_init(); } |