1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2ac5a181dSThomas Renninger #define PATH_TO_CPU "/sys/devices/system/cpu/"
38113ab20SBorislav Petkov 
48113ab20SBorislav Petkov #ifndef MAX_LINE_LEN
5ac5a181dSThomas Renninger #define MAX_LINE_LEN 4096
68113ab20SBorislav Petkov #endif
78113ab20SBorislav Petkov 
8ac5a181dSThomas Renninger #define SYSFS_PATH_MAX 255
9ac5a181dSThomas Renninger 
10*1ce5ab7cSWyes Karny int is_valid_path(const char *path);
119de9aa45SKonstantin Khlebnikov unsigned int cpupower_read_sysfs(const char *path, char *buf, size_t buflen);
128113ab20SBorislav Petkov unsigned int cpupower_write_sysfs(const char *path, char *buf, size_t buflen);
13