]> git.ipfire.org Git - thirdparty/kernel/stable.git/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:28:50 +0000 (15:28 +0200)
commitdf13f43686f3d75f0c8273f70467ed33bdfe27a8
tree0c9594e8aa7c32231a7210218b4d654fecd06173
parent0982fd6bf0b822876f2e93ec782c4c28a3f85535
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