git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cpupower: Move needs_root variable into a sub-struct
[sfrench/cifs-2.6.git]
/
tools
/
power
/
cpupower
/
utils
/
idle_monitor
/
cpupower-monitor.h
diff --git
a/tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h
b/tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h
index a2d901d3bfaf928b06b45594ff89ba56afbdf462..9b612d99966078030312e8e127b2b9b707802972 100644
(file)
--- 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);