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