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)
commit3510fac4549201919c565250fdff5cfa63db9e86
treeb7fab5a6685572506e02866255521ebf636bde95
parent96bdda61f58b70431bbe8a3e49794c8210f7691b
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