PM / QoS: Initial kunit test
commit14e087576081f4f3a6fc6a229166b05b65cf98e5
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 26 Nov 2019 15:17:10 +0000 (26 17:17 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 29 Nov 2019 11:04:49 +0000 (29 12:04 +0100)
tree42960c435c9f103a25df817d93c41a5ba4bb313b
parentc6a3aea93571a5393602256d8f74772bd64c8225
PM / QoS: Initial kunit test

The pm_qos family of APIs are used in relatively difficult to reproduce
scenarios such as thermal throttling so they benefit from unit testing.

Start by adding basic tests from the the freq_qos APIs. It includes
tests for issues that were brought up on mailing lists:

https://patchwork.kernel.org/patch/11252425/#23017005
https://patchwork.kernel.org/patch/11253421/

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/Kconfig
drivers/base/power/Makefile
drivers/base/power/qos-test.c [new file with mode: 0644]