[PATCH v3] clocksource: timer-riscv: Clear timer interrupt on timer initialization

Daniel Lezcano daniel.lezcano at linaro.org
Wed Mar 13 04:11:26 PDT 2024


On 06/03/2024 18:23, Ley Foon Tan wrote:
> In the RISC-V specification, the stimecmp register doesn't have a default
> value. To prevent the timer interrupt from being triggered during timer
> initialization, clear the timer interrupt by writing stimecmp with a
> maximum value.
> 
> Fixes: 9f7a8ff6391f ("RISC-V: Prefer sstc extension if available")
> Cc: <stable at vger.kernel.org>
> Signed-off-by: Ley Foon Tan <leyfoon.tan at starfivetech.com>
> 
> ---

Applied, thanks

-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog




More information about the linux-riscv mailing list