cpuidle.h 1007 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * cpuidle.h - The internal header file
  3. */
  4. #ifndef __DRIVER_CPUIDLE_H
  5. #define __DRIVER_CPUIDLE_H
  6. #include <linux/sysdev.h>
  7. /* For internal use only */
  8. extern struct cpuidle_governor *cpuidle_curr_governor;
  9. extern struct list_head cpuidle_governors;
  10. extern struct list_head cpuidle_detected_devices;
  11. extern struct mutex cpuidle_lock;
  12. extern spinlock_t cpuidle_driver_lock;
  13. /* idle loop */
  14. extern void cpuidle_install_idle_handler(void);
  15. extern void cpuidle_uninstall_idle_handler(void);
  16. /* governors */
  17. extern int cpuidle_switch_governor(struct cpuidle_governor *gov);
  18. /* sysfs */
  19. extern int cpuidle_add_class_sysfs(struct sysdev_class *cls);
  20. extern void cpuidle_remove_class_sysfs(struct sysdev_class *cls);
  21. extern int cpuidle_add_state_sysfs(struct cpuidle_device *device);
  22. extern void cpuidle_remove_state_sysfs(struct cpuidle_device *device);
  23. extern int cpuidle_add_sysfs(struct sys_device *sysdev);
  24. extern void cpuidle_remove_sysfs(struct sys_device *sysdev);
  25. #endif /* __DRIVER_CPUIDLE_H */