xref: /kernel/linux/linux-6.6/tools/power/cpupower/lib/cpuidle.h (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/power/cpupower/lib/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __CPUPOWER_CPUIDLE_H__
362306a36Sopenharmony_ci#define __CPUPOWER_CPUIDLE_H__
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciint cpuidle_is_state_disabled(unsigned int cpu,
662306a36Sopenharmony_ci				       unsigned int idlestate);
762306a36Sopenharmony_ciint cpuidle_state_disable(unsigned int cpu, unsigned int idlestate,
862306a36Sopenharmony_ci				   unsigned int disable);
962306a36Sopenharmony_ciunsigned long cpuidle_state_latency(unsigned int cpu,
1062306a36Sopenharmony_ci						unsigned int idlestate);
1162306a36Sopenharmony_ciunsigned long cpuidle_state_usage(unsigned int cpu,
1262306a36Sopenharmony_ci					unsigned int idlestate);
1362306a36Sopenharmony_ciunsigned long long cpuidle_state_time(unsigned int cpu,
1462306a36Sopenharmony_ci						unsigned int idlestate);
1562306a36Sopenharmony_cichar *cpuidle_state_name(unsigned int cpu,
1662306a36Sopenharmony_ci				unsigned int idlestate);
1762306a36Sopenharmony_cichar *cpuidle_state_desc(unsigned int cpu,
1862306a36Sopenharmony_ci				unsigned int idlestate);
1962306a36Sopenharmony_ciunsigned int cpuidle_state_count(unsigned int cpu);
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_cichar *cpuidle_get_governor(void);
2262306a36Sopenharmony_cichar *cpuidle_get_driver(void);
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#endif /* __CPUPOWER_HELPERS_SYSFS_H__ */
25

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