xref: /linux/tools/power/cpupower/lib/cpuidle.h (revision 02824a5fd11f99b4637668926a59aab3698b46a9)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2ac5a181dSThomas Renninger #ifndef __CPUPOWER_CPUIDLE_H__
3ac5a181dSThomas Renninger #define __CPUPOWER_CPUIDLE_H__
4ac5a181dSThomas Renninger 
5ac5a181dSThomas Renninger int cpuidle_is_state_disabled(unsigned int cpu,
6ac5a181dSThomas Renninger 				       unsigned int idlestate);
7ac5a181dSThomas Renninger int cpuidle_state_disable(unsigned int cpu, unsigned int idlestate,
8ac5a181dSThomas Renninger 				   unsigned int disable);
9ac5a181dSThomas Renninger unsigned long cpuidle_state_latency(unsigned int cpu,
10ac5a181dSThomas Renninger 						unsigned int idlestate);
11*76fb981aSAboorva Devarajan unsigned long cpuidle_state_residency(unsigned int cpu,
12*76fb981aSAboorva Devarajan 						unsigned int idlestate);
13ac5a181dSThomas Renninger unsigned long cpuidle_state_usage(unsigned int cpu,
14ac5a181dSThomas Renninger 					unsigned int idlestate);
15ac5a181dSThomas Renninger unsigned long long cpuidle_state_time(unsigned int cpu,
16ac5a181dSThomas Renninger 						unsigned int idlestate);
17ac5a181dSThomas Renninger char *cpuidle_state_name(unsigned int cpu,
18ac5a181dSThomas Renninger 				unsigned int idlestate);
19ac5a181dSThomas Renninger char *cpuidle_state_desc(unsigned int cpu,
20ac5a181dSThomas Renninger 				unsigned int idlestate);
21ac5a181dSThomas Renninger unsigned int cpuidle_state_count(unsigned int cpu);
22ac5a181dSThomas Renninger 
23ac5a181dSThomas Renninger char *cpuidle_get_governor(void);
24ac5a181dSThomas Renninger char *cpuidle_get_driver(void);
25ac5a181dSThomas Renninger 
26ac5a181dSThomas Renninger #endif /* __CPUPOWER_HELPERS_SYSFS_H__ */
27