cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

cpuidle.h (844B)


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