]> git.baikalelectronics.ru Git - kernel.git/commit
PM: QoS: Clean up misc device file operations
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Feb 2020 23:00:12 +0000 (00:00 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Feb 2020 10:26:13 +0000 (11:26 +0100)
commit932077fa06aaaab5dda5f84148359e103b86dfcd
tree8b87292595df419b6b8efc035fe690e5f8249a38
parentabd47789058e7fd45b7d880856ff411ccae7b8f2
PM: QoS: Clean up misc device file operations

Reorder the code to avoid using extra function header declarations
for the pm_qos_power_*() family of functions and drop those
declarations.

Also clean up the internals of those functions to consolidate checks,
avoid using redundant local variables and similar.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Tested-by: Amit Kucheria <amit.kucheria@linaro.org>
kernel/power/qos.c