]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/riscv: Fix clocksource mask
authorAtish Patra <atish.patra@wdc.com>
Fri, 22 Mar 2019 21:54:11 +0000 (14:54 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 23 Mar 2019 11:25:34 +0000 (12:25 +0100)
commitcde7030a3dcf0f02542ed8eed36af7e59a7550ae
treea473db7707902cb56ea5a8ffb05a8d2e5055656c
parentffcdb4f861948f178fa3944a88b974c7872ca18d
clocksource/drivers/riscv: Fix clocksource mask

For all riscv architectures (RV32, RV64 and RV128), the clocksource
is a 64 bit incrementing counter.

Fix the clock source mask accordingly.

Tested on both 64bit and 32 bit virt machine in QEMU.

Fixes: e6013a37871e ("clocksource: new RISC-V SBI timer driver")
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: linux-riscv@lists.infradead.org
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Anup Patel <Anup.Patel@wdc.com>
Cc: Damien Le Moal <Damien.LeMoal@wdc.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20190322215411.19362-1-atish.patra@wdc.com
drivers/clocksource/timer-riscv.c