pm_qos_params.h 844 B

123456789101112131415161718192021222324252627
  1. /* interface for the pm_qos_power infrastructure of the linux kernel.
  2. *
  3. * Mark Gross <mgross@linux.intel.com>
  4. */
  5. #include <linux/list.h>
  6. #include <linux/notifier.h>
  7. #include <linux/miscdevice.h>
  8. #define PM_QOS_RESERVED 0
  9. #define PM_QOS_CPU_DMA_LATENCY 1
  10. #define PM_QOS_NETWORK_LATENCY 2
  11. #define PM_QOS_NETWORK_THROUGHPUT 3
  12. #define PM_QOS_NUM_CLASSES 4
  13. #define PM_QOS_DEFAULT_VALUE -1
  14. struct pm_qos_request_list;
  15. struct pm_qos_request_list *pm_qos_add_request(int pm_qos_class, s32 value);
  16. void pm_qos_update_request(struct pm_qos_request_list *pm_qos_req,
  17. s32 new_value);
  18. void pm_qos_remove_request(struct pm_qos_request_list *pm_qos_req);
  19. int pm_qos_request(int pm_qos_class);
  20. int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier);
  21. int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier);