diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index d1399660b776..28c774ff3cc7 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -99,6 +99,7 @@ struct robust_list_head; | |||
99 | struct bio; | 99 | struct bio; |
100 | struct fs_struct; | 100 | struct fs_struct; |
101 | struct bts_context; | 101 | struct bts_context; |
102 | struct perf_counter_context; | ||
102 | 103 | ||
103 | /* | 104 | /* |
104 | * List of flags we want to share for kernel threads, | 105 | * List of flags we want to share for kernel threads, |
@@ -139,6 +140,7 @@ extern unsigned long nr_running(void); | |||
139 | extern unsigned long nr_uninterruptible(void); | 140 | extern unsigned long nr_uninterruptible(void); |
140 | extern unsigned long nr_iowait(void); | 141 | extern unsigned long nr_iowait(void); |
141 | extern void calc_global_load(void); | 142 | extern void calc_global_load(void); |
143 | extern u64 cpu_nr_migrations(int cpu); | ||
142 | 144 | ||
143 | extern unsigned long get_parent_ip(unsigned long addr); | 145 | extern unsigned long get_parent_ip(unsigned long addr); |
144 | 146 | ||
@@ -674,6 +676,10 @@ struct user_struct { | |||
674 | struct work_struct work; | 676 | struct work_struct work; |
675 | #endif | 677 | #endif |
676 | #endif | 678 | #endif |
679 | |||
680 | #ifdef CONFIG_PERF_COUNTERS | ||
681 | atomic_long_t locked_vm; | ||
682 | #endif | ||
677 | }; | 683 | }; |
678 | 684 | ||
679 | extern int uids_sysfs_init(void); | 685 | extern int uids_sysfs_init(void); |
@@ -1073,9 +1079,10 @@ struct sched_entity { | |||
1073 | u64 last_wakeup; | 1079 | u64 last_wakeup; |
1074 | u64 avg_overlap; | 1080 | u64 avg_overlap; |
1075 | 1081 | ||
1082 | u64 nr_migrations; | ||
1083 | |||
1076 | u64 start_runtime; | 1084 | u64 start_runtime; |
1077 | u64 avg_wakeup; | 1085 | u64 avg_wakeup; |
1078 | u64 nr_migrations; | ||
1079 | 1086 | ||
1080 | #ifdef CONFIG_SCHEDSTATS | 1087 | #ifdef CONFIG_SCHEDSTATS |
1081 | u64 wait_start; | 1088 | u64 wait_start; |
@@ -1394,6 +1401,11 @@ struct task_struct { | |||
1394 | struct list_head pi_state_list; | 1401 | struct list_head pi_state_list; |
1395 | struct futex_pi_state *pi_state_cache; | 1402 | struct futex_pi_state *pi_state_cache; |
1396 | #endif | 1403 | #endif |
1404 | #ifdef CONFIG_PERF_COUNTERS | ||
1405 | struct perf_counter_context *perf_counter_ctxp; | ||
1406 | struct mutex perf_counter_mutex; | ||
1407 | struct list_head perf_counter_list; | ||
1408 | #endif | ||
1397 | #ifdef CONFIG_NUMA | 1409 | #ifdef CONFIG_NUMA |
1398 | struct mempolicy *mempolicy; | 1410 | struct mempolicy *mempolicy; |
1399 | short il_next; | 1411 | short il_next; |
@@ -2407,6 +2419,13 @@ static inline void inc_syscw(struct task_struct *tsk) | |||
2407 | #define TASK_SIZE_OF(tsk) TASK_SIZE | 2419 | #define TASK_SIZE_OF(tsk) TASK_SIZE |
2408 | #endif | 2420 | #endif |
2409 | 2421 | ||
2422 | /* | ||
2423 | * Call the function if the target task is executing on a CPU right now: | ||
2424 | */ | ||
2425 | extern void task_oncpu_function_call(struct task_struct *p, | ||
2426 | void (*func) (void *info), void *info); | ||
2427 | |||
2428 | |||
2410 | #ifdef CONFIG_MM_OWNER | 2429 | #ifdef CONFIG_MM_OWNER |
2411 | extern void mm_update_next_owner(struct mm_struct *mm); | 2430 | extern void mm_update_next_owner(struct mm_struct *mm); |
2412 | extern void mm_init_owner(struct mm_struct *mm, struct task_struct *p); | 2431 | extern void mm_init_owner(struct mm_struct *mm, struct task_struct *p); |