aboutsummaryrefslogtreecommitdiffstats
path: root/tools/power/cpupower/lib/cpupower_intern.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/power/cpupower/lib/cpupower_intern.h')
-rw-r--r--tools/power/cpupower/lib/cpupower_intern.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/power/cpupower/lib/cpupower_intern.h b/tools/power/cpupower/lib/cpupower_intern.h
new file mode 100644
index 000000000000..f8ec4009621c
--- /dev/null
+++ b/tools/power/cpupower/lib/cpupower_intern.h
@@ -0,0 +1,5 @@
+#define PATH_TO_CPU "/sys/devices/system/cpu/"
+#define MAX_LINE_LEN 4096
+#define SYSFS_PATH_MAX 255
+
+unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen);