2021-05-27 00:09:36 +05:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#define PATH_TO_CPU "/sys/devices/system/cpu/"
|
2021-10-02 21:09:28 +05:00
|
|
|
|
|
|
|
#ifndef MAX_LINE_LEN
|
2021-05-27 00:09:36 +05:00
|
|
|
#define MAX_LINE_LEN 4096
|
2021-10-02 21:09:28 +05:00
|
|
|
#endif
|
|
|
|
|
2021-05-27 00:09:36 +05:00
|
|
|
#define SYSFS_PATH_MAX 255
|
|
|
|
|
|
|
|
unsigned int cpupower_read_sysfs(const char *path, char *buf, size_t buflen);
|
2021-10-02 21:09:28 +05:00
|
|
|
unsigned int cpupower_write_sysfs(const char *path, char *buf, size_t buflen);
|