aboutsummaryrefslogtreecommitdiffstats
path: root/tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h
diff options
context:
space:
mode:
authorJanakarajan Natarajan <Janakarajan.Natarajan@amd.com>2019-11-05 17:16:52 +0000
committerShuah Khan <skhan@linuxfoundation.org>2019-11-05 17:22:01 -0700
commitd3f5d2a192a299f56579ae6e6283f9011b00208f (patch)
treeb56c121395ac84b7ad814b88bdb342621b426e47 /tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h
parentcpupower : Handle set and info subcommands correctly (diff)
downloadlinux-dev-d3f5d2a192a299f56579ae6e6283f9011b00208f.tar.xz
linux-dev-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/cpupower-monitor.h')
-rw-r--r--tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h b/tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h
index a2d901d3bfaf..9b612d999660 100644
--- a/tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h
+++ b/tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h
@@ -60,7 +60,9 @@ struct cpuidle_monitor {
struct cpuidle_monitor* (*do_register) (void);
void (*unregister)(void);
unsigned int overflow_s;
- int needs_root;
+ struct {
+ unsigned int needs_root:1;
+ } flags;
};
extern long long timespec_diff_us(struct timespec start, struct timespec end);