Revert "cpufreq: postfix policy directory with the first CPU in related_cpus"
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Mar 2016 09:21:33 +0000 (14:51 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 20:42:45 +0000 (21:42 +0100)
commitedd4a893e097d744e8069acf585f8b02dbbc9134
tree2cb2f1cb53af28df30f8b3a92a9cf0a74a520c17
parented757a2c7bf7aa99d219b78349b4a0334851dc38
Revert "cpufreq: postfix policy directory with the first CPU in related_cpus"

Revert commit 3510fac45492 (cpufreq: postfix policy directory with the
first CPU in related_cpus).

Earlier, the policy->kobj was added to the kobject core, before ->init()
callback was called for the cpufreq drivers. Which allowed those drivers
to add or remove, driver dependent, sysfs files/directories to the same
kobj from their ->init() and ->exit() callbacks.

That isn't possible anymore after commit 3510fac45492.

Now, there is no other clean alternative that people can adopt.

Its better to revert the earlier commit to allow cpufreq drivers to
create/remove sysfs files from ->init() and ->exit() callbacks.

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