summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2014-12-05 20:19:08 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-01-24 00:16:21 +0300
commitf5f4eda4c9b9e26ec7d7c8ce083e386016ffc0f8 (patch)
treecf25f602ef03fa21f681e7105c05b36cc0025744 /drivers/base
parentec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc (diff)
downloadlinux-f5f4eda4c9b9e26ec7d7c8ce083e386016ffc0f8.tar.xz
PM / QoS: Add debugfs support to view the list of constraints
PM QoS requests are notoriously hard to debug and made even more so due to their highly dynamic nature. Having visibility into the internal data representation per constraint allows us to have much better appreciation of potential issues or bad usage by drivers in the system. So introduce for all classes of PM QoS, an entry in /sys/kernel/debug/pm_qos that shall show all the current requests as well as the snapshot of the value these requests boil down to. For example: ==> /sys/kernel/debug/pm_qos/cpu_dma_latency <== 1: 4444: Active 2: 2000000000: Default 3: 2000000000: Default 4: 2000000000: Default Type=Minimum, Value=4444, Requests: active=1 / total=4 ==> /sys/kernel/debug/pm_qos/memory_bandwidth <== Empty! ... The actual value listed will have their meaning based on the QoS it is on, the 'Type' indicates what logic it would use to collate the information - Minimum, Maximum, or Sum. Value is the collation of all requests. This interface also compares the values with the defaults for the QoS class and marks the ones that are currently active. Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Dave Gerlach <d-gerlach@ti.com> Acked-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions