summaryrefslogtreecommitdiff
path: root/tools/power/cpupower/utils/helpers/sysfs.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-08 21:49:53 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-08 21:49:53 +0200
commitd8851b4b0c1e7cf6cae829d060510437d2d320ee (patch)
treec0d3ea73e7e682ef362e3239dd25e70e8b7fb585 /tools/power/cpupower/utils/helpers/sysfs.h
parent37998bb0be8b429cbce1f933066e2f6bf3b8302e (diff)
parent7ee767b69b6885dd81bafaf1881c5028033a6177 (diff)
Merge branch 'pm-tools'pm+acpi-3.11-rc1-more
* pm-tools: cpupower: Add Haswell family 0x45 specific idle monitor to show PC8,9,10 states cpupower: Haswell also supports the C-states introduced with SandyBridge cpupower: Introduce idle-set subcommand and C-state enabling/disabling cpupower: Implement disabling of cstate interface cpupower: Make idlestate usage unsigned
Diffstat (limited to 'tools/power/cpupower/utils/helpers/sysfs.h')
-rw-r--r--tools/power/cpupower/utils/helpers/sysfs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/helpers/sysfs.h b/tools/power/cpupower/utils/helpers/sysfs.h
index 8cb797bbceb0..d28f11fedbda 100644
--- a/tools/power/cpupower/utils/helpers/sysfs.h
+++ b/tools/power/cpupower/utils/helpers/sysfs.h
@@ -7,8 +7,16 @@
extern unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen);
+extern unsigned int sysfs_idlestate_file_exists(unsigned int cpu,
+ unsigned int idlestate,
+ const char *fname);
+
extern int sysfs_is_cpu_online(unsigned int cpu);
+extern int sysfs_is_idlestate_disabled(unsigned int cpu,
+ unsigned int idlestate);
+extern int sysfs_idlestate_disable(unsigned int cpu, unsigned int idlestate,
+ unsigned int disable);
extern unsigned long sysfs_get_idlestate_latency(unsigned int cpu,
unsigned int idlestate);
extern unsigned long sysfs_get_idlestate_usage(unsigned int cpu,
@@ -19,7 +27,7 @@ extern char *sysfs_get_idlestate_name(unsigned int cpu,
unsigned int idlestate);
extern char *sysfs_get_idlestate_desc(unsigned int cpu,
unsigned int idlestate);
-extern int sysfs_get_idlestate_count(unsigned int cpu);
+extern unsigned int sysfs_get_idlestate_count(unsigned int cpu);
extern char *sysfs_get_cpuidle_governor(void);
extern char *sysfs_get_cpuidle_driver(void);