]> git.baikalelectronics.ru Git - kernel.git/commit
PM: QoS: Clean up pm_qos_read_value() and pm_qos_get/set_value()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Feb 2020 22:58:39 +0000 (23:58 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Feb 2020 10:26:02 +0000 (11:26 +0100)
commitc06a4e0ed856ebec0ffcba6ba0ee18fa996a5b7a
treeab6baece2a1299fd76abcc7931ca39986ed5d193
parent213a550f05533d7cc9f13a094c88cc94f70cc924
PM: QoS: Clean up pm_qos_read_value() and pm_qos_get/set_value()

Move the definition of pm_qos_read_value() before the one of
pm_qos_get_value() and add a kerneldoc comment to it (as it is
not static).

Also replace the BUG() in pm_qos_get_value() with WARN() (to
prevent the kernel from crashing if an unknown PM QoS type is
used by mistake) and drop the comment next to it that is not
necessary any more.

Additionally, drop the unnecessary inline modifier from the header
of pm_qos_set_value().

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