]> 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)
commit37097b6c2a7bb4bad62fd77f7f1a33447bcb269b
tree2cb2f1cb53af28df30f8b3a92a9cf0a74a520c17
parentb3c7f5d36934702f15ce0c6193b3d2d9087d5d73
Revert "cpufreq: postfix policy directory with the first CPU in related_cpus"

Revert commit 783c51c5c34c (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 783c51c5c34c.

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