]>
Commit | Line | Data |
---|---|---|
eb414681 JW |
1 | #ifndef _LINUX_PSI_H |
2 | #define _LINUX_PSI_H | |
3 | ||
4 | #include <linux/psi_types.h> | |
5 | #include <linux/sched.h> | |
6 | ||
7 | #ifdef CONFIG_PSI | |
8 | ||
9 | extern bool psi_disabled; | |
10 | ||
11 | void psi_init(void); | |
12 | ||
13 | void psi_task_change(struct task_struct *task, int clear, int set); | |
14 | ||
15 | void psi_memstall_tick(struct task_struct *task, int cpu); | |
16 | void psi_memstall_enter(unsigned long *flags); | |
17 | void psi_memstall_leave(unsigned long *flags); | |
18 | ||
19 | #else /* CONFIG_PSI */ | |
20 | ||
21 | static inline void psi_init(void) {} | |
22 | ||
23 | static inline void psi_memstall_enter(unsigned long *flags) {} | |
24 | static inline void psi_memstall_leave(unsigned long *flags) {} | |
25 | ||
26 | #endif /* CONFIG_PSI */ | |
27 | ||
28 | #endif /* _LINUX_PSI_H */ |