]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Make intel_pstate_kobject and debugfs_parent locals
authorStratos Karafotis <stratosk@semaphore.gr>
Fri, 18 Jul 2014 15:37:17 +0000 (08:37 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 21 Jul 2014 11:43:17 +0000 (13:43 +0200)
commit47d6bb1e99d7bd488096a580370e76d13e040853
tree05bce3107986a53f1c45d1f5f6f8385449744ee6
parent524b1d071ee32d3981cf3ce0e68cbaa8e4849c62
cpufreq: intel_pstate: Make intel_pstate_kobject and debugfs_parent locals

Since we never remove sysfs entry and debugfs files, we can make
the intel_pstate_kobject and debugfs_parent locals.

Also, annotate with __init intel_pstate_sysfs_expose_params()
and intel_pstate_debug_expose_params() in order to be freed
after bootstrap.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c