1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __CPUPOWER_CPUIDLE_H__ 2 #ifndef __CPUPOWER_CPUIDLE_H__ 3 #define __CPUPOWER_CPUIDLE_H__ 3 #define __CPUPOWER_CPUIDLE_H__ 4 4 5 int cpuidle_is_state_disabled(unsigned int cpu 5 int cpuidle_is_state_disabled(unsigned int cpu, 6 unsigne 6 unsigned int idlestate); 7 int cpuidle_state_disable(unsigned int cpu, un 7 int cpuidle_state_disable(unsigned int cpu, unsigned int idlestate, 8 unsigned in 8 unsigned int disable); 9 unsigned long cpuidle_state_latency(unsigned i 9 unsigned long cpuidle_state_latency(unsigned int cpu, 10 10 unsigned int idlestate); 11 unsigned long cpuidle_state_residency(unsigned 11 unsigned long cpuidle_state_residency(unsigned int cpu, 12 12 unsigned int idlestate); 13 unsigned long cpuidle_state_usage(unsigned int 13 unsigned long cpuidle_state_usage(unsigned int cpu, 14 unsign 14 unsigned int idlestate); 15 unsigned long long cpuidle_state_time(unsigned 15 unsigned long long cpuidle_state_time(unsigned int cpu, 16 16 unsigned int idlestate); 17 char *cpuidle_state_name(unsigned int cpu, 17 char *cpuidle_state_name(unsigned int cpu, 18 unsigned int i 18 unsigned int idlestate); 19 char *cpuidle_state_desc(unsigned int cpu, 19 char *cpuidle_state_desc(unsigned int cpu, 20 unsigned int i 20 unsigned int idlestate); 21 unsigned int cpuidle_state_count(unsigned int 21 unsigned int cpuidle_state_count(unsigned int cpu); 22 22 23 char *cpuidle_get_governor(void); 23 char *cpuidle_get_governor(void); 24 char *cpuidle_get_driver(void); 24 char *cpuidle_get_driver(void); 25 25 26 #endif /* __CPUPOWER_HELPERS_SYSFS_H__ */ 26 #endif /* __CPUPOWER_HELPERS_SYSFS_H__ */ 27 27
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.