Hi,

I am looking at in cpufreq.c

        __cpufreq_governor(policy, CPUFREQ_GOV_STOP);
        up_write(&policy->rwsem);
        __cpufreq_governor(policy, CPUFREQ_GOV_POLICY_EXIT);
        down_write(&policy->rwsem);

Why do we need to unlock the lock before calling CPUFREQ_GOV_POLICY_EXIT.

Wont this result in a race condition when 2 cpus are calling policy
exit, one after another during governor switch?

-- 
Regards,
Sriram

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to