162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#define PATH_TO_CPU "/sys/devices/system/cpu/" 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#ifndef MAX_LINE_LEN 562306a36Sopenharmony_ci#define MAX_LINE_LEN 4096 662306a36Sopenharmony_ci#endif 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#define SYSFS_PATH_MAX 255 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ciint is_valid_path(const char *path); 1162306a36Sopenharmony_ciunsigned int cpupower_read_sysfs(const char *path, char *buf, size_t buflen); 1262306a36Sopenharmony_ciunsigned int cpupower_write_sysfs(const char *path, char *buf, size_t buflen); 13