]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: postfix policy directory with the first CPU in related_cpus
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 16 Oct 2015 07:11:12 +0000 (12:41 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 28 Oct 2015 08:21:12 +0000 (09:21 +0100)
commit80609ce52855b2ec905af637c00caa358b34e9b0
treeb7fab5a6685572506e02866255521ebf636bde95
parent6171f1aea78a98db033d24912aa2a75b30a6d364
cpufreq: postfix policy directory with the first CPU in related_cpus

The sysfs policy directory is postfixed currently with the CPU number
for which the policy was created, which isn't necessarily the first CPU
in related_cpus mask.

To make it more consistent and predictable, lets postfix the policy with
the first cpu in related-cpus mask.

Suggested-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c