clocksource: new RISC-V SBI timer driver
authorPalmer Dabbelt <palmer@dabbelt.com>
Sat, 4 Aug 2018 08:23:19 +0000 (10:23 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 13 Aug 2018 15:31:31 +0000 (08:31 -0700)
commit62b0194368147def8c5a77ce604a125d620fc582
treeffb0a3da4944a8aa15ce481a5e695acc03da3684
parent6ea0f26a7913b2a72f9cbe84e77ad2cbeaaa9dde
clocksource: new RISC-V SBI timer driver

The RISC-V ISA defines a per-hart real-time clock and timer, which is
present on all systems.  The clock is accessed via the 'rdtime'
pseudo-instruction (which reads a CSR), and the timer is set via an SBI
call.

Contains various improvements from Atish Patra <atish.patra@wdc.com>.

Signed-off-by: Dmitriy Cherkasov <dmitriy@oss-tech.org>
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
[hch: remove dead code, add SPDX tags, used riscv_of_processor_hart(),
 minor cleanups, merged  hotplug cpu support and other improvements
 from Atish]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/smp.h
arch/riscv/kernel/irq.c
arch/riscv/kernel/smpboot.c
arch/riscv/kernel/time.c
drivers/clocksource/Kconfig
drivers/clocksource/Makefile
drivers/clocksource/riscv_timer.c [new file with mode: 0644]
include/linux/cpuhotplug.h