]> git.hungrycats.org Git - linux/commit
clocksource/drivers/arm_global_timer: Fix maximum prescaler value
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 18 Feb 2024 17:41:37 +0000 (18:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:11:42 +0000 (15:11 +0200)
commit70796d02de9603f97011e934d160a1e28dbab6ca
treeb21a7e278f98f3efc3452af83ce4483247bf1e5f
parent66fa3fcb474b2b892fe42d455a6f7ec5aaa98fb9
clocksource/drivers/arm_global_timer: Fix maximum prescaler value

[ Upstream commit b34b9547cee41575a4fddf390f615570759dc999 ]

The prescaler in the "Global Timer Control Register bit assignments" is
documented to use bits [15:8], which means that the maximum prescaler
register value is 0xff.

Fixes: 171b45a4a70e ("clocksource/drivers/arm_global_timer: Implement rate compensation whenever source clock changes")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240218174138.1942418-2-martin.blumenstingl@googlemail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clocksource/arm_global_timer.c