^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __CPUPOWER_CPUIDLE_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __CPUPOWER_CPUIDLE_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) int cpuidle_is_state_disabled(unsigned int cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) unsigned int idlestate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) int cpuidle_state_disable(unsigned int cpu, unsigned int idlestate,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) unsigned int disable);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) unsigned long cpuidle_state_latency(unsigned int cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) unsigned int idlestate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) unsigned long cpuidle_state_usage(unsigned int cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) unsigned int idlestate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) unsigned long long cpuidle_state_time(unsigned int cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) unsigned int idlestate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) char *cpuidle_state_name(unsigned int cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) unsigned int idlestate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) char *cpuidle_state_desc(unsigned int cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) unsigned int idlestate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) unsigned int cpuidle_state_count(unsigned int cpu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) char *cpuidle_get_governor(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) char *cpuidle_get_driver(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #endif /* __CPUPOWER_HELPERS_SYSFS_H__ */