xref: /openbmc/linux/tools/power/cpupower/lib/cpuidle.h (revision 4f6cce39)
1 #ifndef __CPUPOWER_CPUIDLE_H__
2 #define __CPUPOWER_CPUIDLE_H__
3 
4 int cpuidle_is_state_disabled(unsigned int cpu,
5 				       unsigned int idlestate);
6 int cpuidle_state_disable(unsigned int cpu, unsigned int idlestate,
7 				   unsigned int disable);
8 unsigned long cpuidle_state_latency(unsigned int cpu,
9 						unsigned int idlestate);
10 unsigned long cpuidle_state_usage(unsigned int cpu,
11 					unsigned int idlestate);
12 unsigned long long cpuidle_state_time(unsigned int cpu,
13 						unsigned int idlestate);
14 char *cpuidle_state_name(unsigned int cpu,
15 				unsigned int idlestate);
16 char *cpuidle_state_desc(unsigned int cpu,
17 				unsigned int idlestate);
18 unsigned int cpuidle_state_count(unsigned int cpu);
19 
20 char *cpuidle_get_governor(void);
21 char *cpuidle_get_driver(void);
22 
23 #endif /* __CPUPOWER_HELPERS_SYSFS_H__ */
24