debugfs.c (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) | debugfs.c (84cb7ff35fcf7c0b552f553a3f2db9c3e92fc707) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Generic OPP debugfs interface 4 * 5 * Copyright (C) 2015-2016 Viresh Kumar <viresh.kumar@linaro.org> 6 */ 7 8#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt --- 138 unchanged lines hidden (view full) --- 147 148 /* Create per-opp directory */ 149 d = debugfs_create_dir(name, pdentry); 150 151 debugfs_create_bool("available", S_IRUGO, d, &opp->available); 152 debugfs_create_bool("dynamic", S_IRUGO, d, &opp->dynamic); 153 debugfs_create_bool("turbo", S_IRUGO, d, &opp->turbo); 154 debugfs_create_bool("suspend", S_IRUGO, d, &opp->suspend); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Generic OPP debugfs interface 4 * 5 * Copyright (C) 2015-2016 Viresh Kumar <viresh.kumar@linaro.org> 6 */ 7 8#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt --- 138 unchanged lines hidden (view full) --- 147 148 /* Create per-opp directory */ 149 d = debugfs_create_dir(name, pdentry); 150 151 debugfs_create_bool("available", S_IRUGO, d, &opp->available); 152 debugfs_create_bool("dynamic", S_IRUGO, d, &opp->dynamic); 153 debugfs_create_bool("turbo", S_IRUGO, d, &opp->turbo); 154 debugfs_create_bool("suspend", S_IRUGO, d, &opp->suspend); |
155 debugfs_create_u32("performance_state", S_IRUGO, d, &opp->pstate); | |
156 debugfs_create_u32("level", S_IRUGO, d, &opp->level); 157 debugfs_create_ulong("clock_latency_ns", S_IRUGO, d, 158 &opp->clock_latency_ns); 159 | 155 debugfs_create_u32("level", S_IRUGO, d, &opp->level); 156 debugfs_create_ulong("clock_latency_ns", S_IRUGO, d, 157 &opp->clock_latency_ns); 158 |
159 if (opp_table->is_genpd) 160 debugfs_create_u32("performance_state", S_IRUGO, d, &opp->pstate); 161 |
|
160 opp->of_name = of_node_full_name(opp->np); 161 debugfs_create_str("of_name", S_IRUGO, d, (char **)&opp->of_name); 162 163 opp_debug_create_clks(opp, opp_table, d); 164 opp_debug_create_supplies(opp, opp_table, d); 165 opp_debug_create_bw(opp, opp_table, d); 166 167 opp->dentry = d; --- 113 unchanged lines hidden --- | 162 opp->of_name = of_node_full_name(opp->np); 163 debugfs_create_str("of_name", S_IRUGO, d, (char **)&opp->of_name); 164 165 opp_debug_create_clks(opp, opp_table, d); 166 opp_debug_create_supplies(opp, opp_table, d); 167 opp_debug_create_bw(opp, opp_table, d); 168 169 opp->dentry = d; --- 113 unchanged lines hidden --- |