xref: /kernel/linux/linux-5.10/tools/power/cpupower/lib/cpuidle.h (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/power/cpupower/lib/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __CPUPOWER_CPUIDLE_H__
38c2ecf20Sopenharmony_ci#define __CPUPOWER_CPUIDLE_H__
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciint cpuidle_is_state_disabled(unsigned int cpu,
68c2ecf20Sopenharmony_ci				       unsigned int idlestate);
78c2ecf20Sopenharmony_ciint cpuidle_state_disable(unsigned int cpu, unsigned int idlestate,
88c2ecf20Sopenharmony_ci				   unsigned int disable);
98c2ecf20Sopenharmony_ciunsigned long cpuidle_state_latency(unsigned int cpu,
108c2ecf20Sopenharmony_ci						unsigned int idlestate);
118c2ecf20Sopenharmony_ciunsigned long cpuidle_state_usage(unsigned int cpu,
128c2ecf20Sopenharmony_ci					unsigned int idlestate);
138c2ecf20Sopenharmony_ciunsigned long long cpuidle_state_time(unsigned int cpu,
148c2ecf20Sopenharmony_ci						unsigned int idlestate);
158c2ecf20Sopenharmony_cichar *cpuidle_state_name(unsigned int cpu,
168c2ecf20Sopenharmony_ci				unsigned int idlestate);
178c2ecf20Sopenharmony_cichar *cpuidle_state_desc(unsigned int cpu,
188c2ecf20Sopenharmony_ci				unsigned int idlestate);
198c2ecf20Sopenharmony_ciunsigned int cpuidle_state_count(unsigned int cpu);
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_cichar *cpuidle_get_governor(void);
228c2ecf20Sopenharmony_cichar *cpuidle_get_driver(void);
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif /* __CPUPOWER_HELPERS_SYSFS_H__ */
25

Indexes created Thu Nov 07 10:32:03 CST 2024