driver.txt 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. Supporting multiple CPU idle levels in kernel
  2. cpuidle drivers
  3. cpuidle driver hooks into the cpuidle infrastructure and handles the
  4. architecture/platform dependent part of CPU idle states. Driver
  5. provides the platform idle state detection capability and also
  6. has mechanisms in place to support actual entry-exit into CPU idle states.
  7. cpuidle driver initializes the cpuidle_device structure for each CPU device
  8. and registers with cpuidle using cpuidle_register_device.
  9. It can also support the dynamic changes (like battery <-> AC), by using
  10. cpuidle_pause_and_lock, cpuidle_disable_device and cpuidle_enable_device,
  11. cpuidle_resume_and_unlock.
  12. Interfaces:
  13. extern int cpuidle_register_driver(struct cpuidle_driver *drv);
  14. extern void cpuidle_unregister_driver(struct cpuidle_driver *drv);
  15. extern int cpuidle_register_device(struct cpuidle_device *dev);
  16. extern void cpuidle_unregister_device(struct cpuidle_device *dev);
  17. extern void cpuidle_pause_and_lock(void);
  18. extern void cpuidle_resume_and_unlock(void);
  19. extern int cpuidle_enable_device(struct cpuidle_device *dev);
  20. extern void cpuidle_disable_device(struct cpuidle_device *dev);