Re: [4.4.y-cip 01/15] PM / OPP: Add debugfs support

Viresh Kumar <viresh.kumar@...>

On 04-06-20, 11:18, Chen-Yu Tsai (Moxa) wrote:
From: Viresh Kumar <>

commit deaa51465105a7eda19a627b10372f4f7c51a4df upstream.

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 <>
Reviewed-by: Stephen Boyd <>
Signed-off-by: Rafael J. Wysocki <>
Signed-off-by: Chen-Yu Tsai (Moxa) <>
Please use --suppress-cc=all while sending patches internally.


Join to automatically receive all group messages.