PM / OPP: Add debugfs support
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 11 Nov 2015 02:29:01 +0000 (07:59 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Nov 2015 22:38:23 +0000 (23:38 +0100)
commitdeaa51465105a7eda19a627b10372f4f7c51a4df
tree1ebf1d9d36eaa0d9061bcae5e7704e92681a9268
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
PM / OPP: Add debugfs support

This patch adds debugfs support to OPP layer to export OPPs and their
properties for all the devices.

This creates a top level directory: /sys/kernel/debug/opp and then
device specific directories (based on device names) inside it. For
example: 'cpu0', 'cpu1', etc..

If multiple devices share the OPP table, then the real directory is
created only for the first device. For all others, links are created to
the real directory.

Inside the device specific directory, a separate directory is created
for each OPP. And within that files per opp property.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/Makefile
drivers/base/power/opp/core.c
drivers/base/power/opp/debugfs.c [new file with mode: 0644]
drivers/base/power/opp/opp.h