cpupower: Move needs_root variable into a sub-struct
authorJanakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Tue, 5 Nov 2019 17:16:52 +0000 (17:16 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 6 Nov 2019 00:22:01 +0000 (17:22 -0700)
commitd3f5d2a192a299f56579ae6e6283f9011b00208f
treeb56c121395ac84b7ad814b88bdb342621b426e47
parentd80a4ac20800035c46a3868ad9e11ebda0049c7d
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>
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h
tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
tools/power/cpupower/utils/idle_monitor/nhm_idle.c
tools/power/cpupower/utils/idle_monitor/snb_idle.c