RISC-V: Remove CLINT related code from timer and arch
Right now the RISC-V timer driver is convoluted to support: 1. Linux RISC-V S-mode (with MMU) where it will use TIME CSR for clocksource and SBI timer calls for clockevent device. 2. Linux RISC-V M-mode (without MMU) where it will use CLINT MMIO counter register for clocksource and CLINT MMIO compare register for clockevent device. We now have a separate CLINT timer driver which also provide CLINT based IPI operations so let's remove CLINT MMIO related code from arch/riscv directory and RISC-V timer driver. Signed-off-by:Anup Patel <anup.patel@wdc.com> Tested-by:
Emil Renner Berhing <kernel@esmil.dk> Acked-by:
Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by:
Atish Patra <atish.patra@wdc.com> Reviewed-by:
Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by:
Palmer Dabbelt <palmerdabbelt@google.com>
Showing
- arch/riscv/Kconfig 1 addition, 1 deletionarch/riscv/Kconfig
- arch/riscv/Kconfig.socs 2 additions, 0 deletionsarch/riscv/Kconfig.socs
- arch/riscv/configs/nommu_virt_defconfig 2 additions, 5 deletionsarch/riscv/configs/nommu_virt_defconfig
- arch/riscv/include/asm/clint.h 0 additions, 14 deletionsarch/riscv/include/asm/clint.h
- arch/riscv/include/asm/timex.h 7 additions, 21 deletionsarch/riscv/include/asm/timex.h
- arch/riscv/kernel/Makefile 1 addition, 1 deletionarch/riscv/kernel/Makefile
- arch/riscv/kernel/clint.c 0 additions, 63 deletionsarch/riscv/kernel/clint.c
- arch/riscv/kernel/setup.c 0 additions, 2 deletionsarch/riscv/kernel/setup.c
- arch/riscv/kernel/smp.c 0 additions, 1 deletionarch/riscv/kernel/smp.c
- arch/riscv/kernel/smpboot.c 0 additions, 1 deletionarch/riscv/kernel/smpboot.c
- drivers/clocksource/Kconfig 1 addition, 2 deletionsdrivers/clocksource/Kconfig
- drivers/clocksource/timer-riscv.c 2 additions, 15 deletionsdrivers/clocksource/timer-riscv.c
arch/riscv/include/asm/clint.h
deleted
100644 → 0
arch/riscv/kernel/clint.c
deleted
100644 → 0
Please register or sign in to comment