devfreq.rst 852 B

123456789101112131415161718192021222324252627282930
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ========================
  3. Device Frequency Scaling
  4. ========================
  5. Introduction
  6. ------------
  7. This framework provides a standard kernel interface for Dynamic Voltage and
  8. Frequency Switching on arbitrary devices.
  9. It exposes controls for adjusting frequency through sysfs files which are
  10. similar to the cpufreq subsystem.
  11. Devices for which current usage can be measured can have their frequency
  12. automatically adjusted by governors.
  13. API
  14. ---
  15. Device drivers need to initialize a :c:type:`devfreq_profile` and call the
  16. :c:func:`devfreq_add_device` function to create a :c:type:`devfreq` instance.
  17. .. kernel-doc:: include/linux/devfreq.h
  18. .. kernel-doc:: include/linux/devfreq-event.h
  19. .. kernel-doc:: drivers/devfreq/devfreq.c
  20. :export:
  21. .. kernel-doc:: drivers/devfreq/devfreq-event.c
  22. :export: