Even though the test fixed my initital problem, my test system (which runs the kernel with this patch applied) just crashed when changing frequencies. This might be connected to the patch.
I'll have another look into it and let you know.
Am Dienstag, den 09.09.2014, 09:46 +0530 schrieb Viresh Kumar:
This commit was earlier commited in kernel as: 19c7630 cpufreq: serialize calls to __cpufreq_governor()
and was later reverted by Srivatsa: 56d07db cpufreq: Remove temporary fix for race between CPU hotplug and sysfs-writes
When this commit was first introduced it was written for races during hotplug and because we got some other solution to take care of the races with hotplug we reverted it.
But (as I also said in the revert patch: https://lkml.org/lkml/2013/9/10/61) there are more cases where this is required.