]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
riscv: don't use the rdtime(h) pseudo-instructions
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Aug 2019 14:58:36 +0000 (23:58 +0900)
committerPaul Walmsley <paul.walmsley@sifive.com>
Thu, 5 Sep 2019 08:52:46 +0000 (01:52 -0700)
commit2f12dbf190d97dc0f2f8a07269dd0d8060808539
treed699e8fc51c7814904c0ab79c50a7144e243d544
parentf5bf645d10f2c6cc85294021af70f2b7bcc42d8e
riscv: don't use the rdtime(h) pseudo-instructions

If we just use the CSRs that these map to directly the code is simpler
and doesn't require extra inline assembly code.  Also fix up the top-level
comment in timer-riscv.c to not talk about the cycle count or mention
details of the clocksource interface, of which this file is just a
consumer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/include/asm/timex.h
drivers/clocksource/timer-riscv.c