]> www.infradead.org Git - users/hch/xfs.git/commit
clocksource/drivers/mips-gic-timer: Correct sched_clock width
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Wed, 12 Jun 2024 08:54:34 +0000 (09:54 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 12 Jul 2024 14:07:05 +0000 (16:07 +0200)
commit5e4bfd66eccaaab65b3d565cfe28483afeacaf1d
tree9ce75b1664f59f31779677ac0da57b6138763f6e
parentcc9b2c590ebacf656bb2063c2f6cbfb7ad7081f3
clocksource/drivers/mips-gic-timer: Correct sched_clock width

Counter width of GIC is configurable and can be read from a
register.

Use width value from the register for sched_clock.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Link: https://lore.kernel.org/r/20240612-mips-clks-v2-7-a57e6f49f3db@flygoat.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/mips-gic-timer.c