Re: [PATCH v2 05/11] powerpc: Mark accesses to power_save callback in arch_cpu_idle

2023-05-15 Thread Rohan McLure
> On 15 May 2023, at 3:50 pm, Nicholas Piggin wrote: > > On Wed May 10, 2023 at 1:31 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

Re: [PATCH v2 05/11] powerpc: Mark accesses to power_save callback in arch_cpu_idle

2023-05-14 Thread Nicholas Piggin
On Wed May 10, 2023 at 1:31 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), making > this value a goo

[PATCH v2 05/11] powerpc: Mark accesses to power_save callback in arch_cpu_idle

2023-05-09 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), making this value a good candidate for __ro_after_init. Even with this the case, KCSAN