aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index b94f3541f67b..75b2fc5306d8 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -71,6 +71,7 @@ struct sched_param {
71#include <linux/path.h> 71#include <linux/path.h>
72#include <linux/compiler.h> 72#include <linux/compiler.h>
73#include <linux/completion.h> 73#include <linux/completion.h>
74#include <linux/perf_counter.h>
74#include <linux/pid.h> 75#include <linux/pid.h>
75#include <linux/percpu.h> 76#include <linux/percpu.h>
76#include <linux/topology.h> 77#include <linux/topology.h>
@@ -137,6 +138,8 @@ extern unsigned long nr_running(void);
137extern unsigned long nr_uninterruptible(void); 138extern unsigned long nr_uninterruptible(void);
138extern unsigned long nr_active(void); 139extern unsigned long nr_active(void);
139extern unsigned long nr_iowait(void); 140extern unsigned long nr_iowait(void);
141extern u64 cpu_nr_switches(int cpu);
142extern u64 cpu_nr_migrations(int cpu);
140 143
141extern unsigned long get_parent_ip(unsigned long addr); 144extern unsigned long get_parent_ip(unsigned long addr);
142 145
@@ -1048,9 +1051,10 @@ struct sched_entity {
1048 u64 last_wakeup; 1051 u64 last_wakeup;
1049 u64 avg_overlap; 1052 u64 avg_overlap;
1050 1053
1054 u64 nr_migrations;
1055
1051 u64 start_runtime; 1056 u64 start_runtime;
1052 u64 avg_wakeup; 1057 u64 avg_wakeup;
1053 u64 nr_migrations;
1054 1058
1055#ifdef CONFIG_SCHEDSTATS 1059#ifdef CONFIG_SCHEDSTATS
1056 u64 wait_start; 1060 u64 wait_start;
@@ -1372,6 +1376,7 @@ struct task_struct {
1372 struct list_head pi_state_list; 1376 struct list_head pi_state_list;
1373 struct futex_pi_state *pi_state_cache; 1377 struct futex_pi_state *pi_state_cache;
1374#endif 1378#endif
1379 struct perf_counter_context perf_counter_ctx;
1375#ifdef CONFIG_NUMA 1380#ifdef CONFIG_NUMA
1376 struct mempolicy *mempolicy; 1381 struct mempolicy *mempolicy;
1377 short il_next; 1382 short il_next;
@@ -2380,6 +2385,13 @@ static inline void inc_syscw(struct task_struct *tsk)
2380#define TASK_SIZE_OF(tsk) TASK_SIZE 2385#define TASK_SIZE_OF(tsk) TASK_SIZE
2381#endif 2386#endif
2382 2387
2388/*
2389 * Call the function if the target task is executing on a CPU right now:
2390 */
2391extern void task_oncpu_function_call(struct task_struct *p,
2392 void (*func) (void *info), void *info);
2393
2394
2383#ifdef CONFIG_MM_OWNER 2395#ifdef CONFIG_MM_OWNER
2384extern void mm_update_next_owner(struct mm_struct *mm); 2396extern void mm_update_next_owner(struct mm_struct *mm);
2385extern void mm_init_owner(struct mm_struct *mm, struct task_struct *p); 2397extern void mm_init_owner(struct mm_struct *mm, struct task_struct *p);