mt_sched.h 672 B

123456789101112131415161718192021
  1. #ifdef CONFIG_MTK_SCHED_RQAVG_US
  2. /*
  3. * @cpu: cpu id
  4. * @reset: reset the statistic start time after this time query
  5. * @use_maxfreq: caculate cpu loading with max cpu max frequency
  6. * return: cpu loading as percentage (0~100)
  7. */
  8. extern unsigned int sched_get_percpu_load(int cpu, bool reset, bool use_maxfreq);
  9. /*
  10. * return: heavy task(loading>90%) number in the system
  11. */
  12. extern unsigned int sched_get_nr_heavy_task(void);
  13. /*
  14. * @threshold: heavy task loading threshold (0~1023)
  15. * return: heavy task(loading>threshold) number in the system
  16. */
  17. extern unsigned int sched_get_nr_heavy_task_by_threshold(unsigned int threshold);
  18. #endif /* CONFIG_MTK_SCHED_RQAVG_US */