aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/mediatek/mtprof/prof_ctl.h
blob: 5eb634c0d3c04aa44808637f3d39f3ac00e7c374 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <linux/sched.h>
#include "prof_main.h"
extern struct mt_proc_struct *mt_proc_head;
extern int proc_count;
extern int mtsched_enabled;
extern unsigned long long prof_start_ts, prof_end_ts, prof_dur_ts;

extern struct mt_cpu_info *mt_cpu_info_head;
extern int mt_cpu_num;

extern void mt_task_times(struct task_struct *p, cputime_t *ut, cputime_t *st);

extern unsigned long long mtprof_get_cpu_idle(int cpu);
extern unsigned long long mtprof_get_cpu_iowait(int cpu);

extern void save_mtproc_info(struct task_struct *p, unsigned long long ts);
extern void end_mtproc_info(struct task_struct *p);
extern void start_record_task(void);
extern void stop_record_task(void);
extern void reset_record_task(void);
extern void mt_cputime_switch(int on);
extern void mt_memprof_switch(int on);