diff options
author | Samuel Holland <[email protected]> | 2022-12-27 18:44:44 -0600 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2023-02-13 13:10:16 +0100 |
commit | 674402b0098b66b8ba91fe93c0d27af703256098 (patch) | |
tree | 1ab249b6d78c1c0b5c921ff8b2687644e238c6ae /scripts/gdb/linux/proc.py | |
parent | 8932a9533a9cdd1fa2924a061dc87277991507ca (diff) |
clocksource/drivers/riscv: Increase the clock source rating
RISC-V provides an architectural clock source via the time CSR. This
clock source exposes a 64-bit counter synchronized across all CPUs.
Because it is accessed using a CSR, it is much more efficient to read
than MMIO clock sources. For example, on the Allwinner D1, reading the
sun4i timer in a loop takes 131 cycles/iteration, while reading the
RISC-V time CSR takes only 5 cycles/iteration.
Adjust the RISC-V clock source rating so it is preferred over the
various platform-specific MMIO clock sources.
Signed-off-by: Samuel Holland <[email protected]>
Acked-by: Palmer Dabbelt <[email protected]>
Reviewed-by: Palmer Dabbelt <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Reviewed-by: Lad Prabhakar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions