[PATCH 2/2] riscv: traps_misaligned: Avoid redundant unaligned access speed probe

Charlie Jenkins thecharlesjenkins at gmail.com
Fri Oct 16 00:02:57 PDT 2026


On Thu, 28 May 2026 23:12:31 +0200, Nam Cao <namcao at linutronix.de> wrote:
> When a CPU is taken offline and then is brought back online, unaligned
> access speed probe always runs even though the unaligned access speed is
> already known, wasting CPU cycles.
> 
> This is because when a CPU becomes online, the following happen:
> 
>   1. check_unaligned_access_emulated() is called, which clears
>      misaligned_access_speed if there is no emulation.
> 
> [...]

Reviewed-by: Charlie Jenkins <thecharlesjenkins at gmail.com>
Tested-by: Charlie Jenkins <thecharlesjenkins at gmail.com>

-- 
- Charlie




More information about the linux-riscv mailing list