governor.txt 951 B

12345678910111213141516171819202122232425262728
  1. Supporting multiple CPU idle levels in kernel
  2. cpuidle governors
  3. cpuidle governor is policy routine that decides what idle state to enter at
  4. any given time. cpuidle core uses different callbacks to the governor.
  5. * enable() to enable governor for a particular device
  6. * disable() to disable governor for a particular device
  7. * select() to select an idle state to enter
  8. * reflect() called after returning from the idle state, which can be used
  9. by the governor for some record keeping.
  10. More than one governor can be registered at the same time and
  11. users can switch between drivers using /sysfs interface (when enabled).
  12. More than one governor part is supported for developers to easily experiment
  13. with different governors. By default, most optimal governor based on your
  14. kernel configuration and platform will be selected by cpuidle.
  15. Interfaces:
  16. extern int cpuidle_register_governor(struct cpuidle_governor *gov);
  17. struct cpuidle_governor