[PATCH v2] cpuidle: powerpc: avoid double clear when breaking snooze

Madhavan Srinivasan maddy at linux.ibm.com
Wed Apr 8 14:29:12 AEST 2026


On Wed, 11 Mar 2026 11:47:09 +0530, Shrikanth Hegde wrote:
> snooze_loop is done often in any system which has fair bit of
> idle time. So it qualifies for even micro-optimizations.
> 
> When breaking the snooze due to timeout, TIF_POLLING_NRFLAG is cleared
> twice. Clearing the bit invokes atomics. Avoid double clear and thereby
> avoid one atomic write.
> 
> [...]

Applied to powerpc/next.

[1/1] cpuidle: powerpc: avoid double clear when breaking snooze
      https://git.kernel.org/powerpc/c/64ed1e3e728afb57ba9acb59e69de930ead847d9

cheers


More information about the Linuxppc-dev mailing list