]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72918c05335227ec3bd4d4db5a112601d6892756
tree2cb2f1cb53af28df30f8b3a92a9cf0a74a520c17
parent8bdb5c0eae4957cecc7bfbac95d623b94291a7b3
Revert "cpufreq: postfix policy directory with the first CPU in related_cpus"

Revert commit 80609ce52855 (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 80609ce52855.

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