Re: [PATCH 06/12] powerpc: Mark accesses to power_save callback in arch_cpu_idle

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > The power_save callback can be overwritten by another core at boot time. > Specifically, null values will be replaced exactly once with the callback > suitable for the particular platform (PowerNV / pseries lpars). Mark > reads to this vari

[PATCH 06/12] powerpc: Mark accesses to power_save callback in arch_cpu_idle

2023-05-07 Thread Rohan McLure
The power_save callback can be overwritten by another core at boot time. Specifically, null values will be replaced exactly once with the callback suitable for the particular platform (PowerNV / pseries lpars). Mark reads to this variable with READ_ONCE to signal to KCSAN that this race is acceptab