cpu-cooling-api.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. CPU cooling APIs How To
  2. ===================================
  3. Written by Amit Daniel Kachhap <amit.kachhap@linaro.org>
  4. Updated: 12 May 2012
  5. Copyright (c) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com)
  6. 0. Introduction
  7. The generic cpu cooling(freq clipping) provides registration/unregistration APIs
  8. to the caller. The binding of the cooling devices to the trip point is left for
  9. the user. The registration APIs returns the cooling device pointer.
  10. 1. cpu cooling APIs
  11. 1.1 cpufreq registration/unregistration APIs
  12. 1.1.1 struct thermal_cooling_device *cpufreq_cooling_register(
  13. struct cpumask *clip_cpus)
  14. This interface function registers the cpufreq cooling device with the name
  15. "thermal-cpufreq-%x". This api can support multiple instances of cpufreq
  16. cooling devices.
  17. clip_cpus: cpumask of cpus where the frequency constraints will happen.
  18. 1.1.2 void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
  19. This interface function unregisters the "thermal-cpufreq-%x" cooling device.
  20. cdev: Cooling device pointer which has to be unregistered.