diff options
author | 2019-11-05 17:16:52 +0000 | |
---|---|---|
committer | 2019-11-05 17:22:01 -0700 | |
commit | d3f5d2a192a299f56579ae6e6283f9011b00208f (patch) | |
tree | b56c121395ac84b7ad814b88bdb342621b426e47 /tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c | |
parent | cpupower : Handle set and info subcommands correctly (diff) | |
download | wireguard-linux-d3f5d2a192a299f56579ae6e6283f9011b00208f.tar.xz wireguard-linux-d3f5d2a192a299f56579ae6e6283f9011b00208f.zip |
cpupower: Move needs_root variable into a sub-struct
Move the needs_root variable into a sub-struct. This is in preparation
for adding a new flag for cpuidle_monitor.
Update all uses of the needs_root variable to reflect this change.
Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Acked-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c')
-rw-r--r-- | tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c b/tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c index f634aeb65c5f..3c4cee160b0e 100644 --- a/tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c +++ b/tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c @@ -207,6 +207,6 @@ struct cpuidle_monitor cpuidle_sysfs_monitor = { .stop = cpuidle_stop, .do_register = cpuidle_register, .unregister = cpuidle_unregister, - .needs_root = 0, + .flags.needs_root = 0, .overflow_s = UINT_MAX, }; |