clocksource/drivers/riscv: Fix clocksource mask
authorAtish Patra <[email protected]>
Fri, 22 Mar 2019 21:54:11 +0000 (14:54 -0700)
committerThomas Gleixner <[email protected]>
Sat, 23 Mar 2019 11:25:34 +0000 (12:25 +0100)
commit32d0be018f6f5ee2d5d19c4795304613560814cf
treea473db7707902cb56ea5a8ffb05a8d2e5055656c
parent9039de4034775f4420bf01fa879f8c04b3cd6bba
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: 62b019436814 ("clocksource: new RISC-V SBI timer driver")
Signed-off-by: Atish Patra <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Cc: Albert Ou <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: [email protected]
Cc: Palmer Dabbelt <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
drivers/clocksource/timer-riscv.c