Commit 185d8245 authored by Srinivas Pandruvada's avatar Srinivas Pandruvada Committed by Rafael J. Wysocki

cpufreq: intel_pstate: Remove PID debugfs when not used

When target state is calculated using get_target_pstate_use_cpu_load(),
PID controller is not used, hence it has no effect on performance.
So don't present debugfs entries to tune PID controller.
Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 1d29815e
...@@ -636,8 +636,10 @@ static void __init intel_pstate_debug_expose_params(void) ...@@ -636,8 +636,10 @@ static void __init intel_pstate_debug_expose_params(void)
struct dentry *debugfs_parent; struct dentry *debugfs_parent;
int i = 0; int i = 0;
if (hwp_active) if (hwp_active ||
pstate_funcs.get_target_pstate == get_target_pstate_use_cpu_load)
return; return;
debugfs_parent = debugfs_create_dir("pstate_snb", NULL); debugfs_parent = debugfs_create_dir("pstate_snb", NULL);
if (IS_ERR_OR_NULL(debugfs_parent)) if (IS_ERR_OR_NULL(debugfs_parent))
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment