mt_cputime.h 490 B

12345678910111213141516
  1. #include <linux/sched.h>
  2. bool mtsched_is_enabled(void);
  3. int mtproc_counts(void);
  4. #ifdef CONFIG_MTPROF_CPUTIME
  5. extern void save_mtproc_info(struct task_struct *p, unsigned long long ts);
  6. extern void end_mtproc_info(struct task_struct *p);
  7. extern void mt_cputime_switch(int on);
  8. #else
  9. static inline void
  10. save_mtproc_info(struct task_struct *p, unsigned long long ts) {};
  11. static inline void end_mtproc_info(struct task_struct *p) {};
  12. static inline void mt_cputime_switch(int on) {};
  13. #endif