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)
commit317dd50e80775434a2ea593ad8522e728ed94e9d
tree05bce3107986a53f1c45d1f5f6f8385449744ee6
parent9a3c4145af32125c5ee39c0272662b47307a8323
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