• V
    cpufreq: Fix locking issues · 2eaa3e2d
    Viresh Kumar 提交于
    cpufreq core uses two locks:
    - cpufreq_driver_lock: General lock for driver and cpufreq_cpu_data array.
    - cpu_policy_rwsemfix locking: per CPU reader-writer semaphore designed to cure
      all cpufreq/hotplug/workqueue/etc related lock issues.
    
    These locks were not used properly and are placed against their principle
    (present before their definition) at various places. This patch is an attempt to
    fix their use.
    Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
    2eaa3e2d
cpufreq.c 48.7 KB