PM / OPP: Add debugfs support
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 11 Nov 2015 02:29:01 +0000 (07:59 +0530)
committerAlex Shi <alex.shi@linaro.org>
Fri, 8 Apr 2016 03:22:01 +0000 (11:22 +0800)
commit0871a32c4d1b28aa266be3f33f2068a193196ac7
treeed9c263c3a3358039740d29d4a8a8ee4308f74b8
parent0d1912303e54ed1b2a371be0bba51c384dd57326
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>
(cherry picked from commit deaa51465105a7eda19a627b10372f4f7c51a4df)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
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