Re: [patch 12/13] cpufreq/sparc-us2e: Replace racy task affinity logic

2017-04-12 Thread Viresh Kumar
On 12-04-17, 22:07, Thomas Gleixner wrote: > The access to the HBIRD_ESTAR_MODE register in the cpu frequency control > functions must happen on the target CPU. This is achieved by temporarily > setting the affinity of the calling user space thread to the requested CPU > and reset it to the origina

[patch 12/13] cpufreq/sparc-us2e: Replace racy task affinity logic

2017-04-12 Thread Thomas Gleixner
The access to the HBIRD_ESTAR_MODE register in the cpu frequency control functions must happen on the target CPU. This is achieved by temporarily setting the affinity of the calling user space thread to the requested CPU and reset it to the original affinity afterwards. That's racy vs. CPU hotplug