summaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2012-11-27 23:28:54 -0200
committerMarcelo Tosatti <mtosatti@redhat.com>2012-11-27 23:29:09 -0200
commit582b336ec2c0f0076f5650a029fcc9abd4a906f7 (patch)
tree4827fe468a1aac8be0227cac5bab922b32c2facc /include/linux/sched.h
parent189e11731aa858597095fbe1e6d243bad26bd96b (diff)
downloadop-kernel-dev-582b336ec2c0f0076f5650a029fcc9abd4a906f7.zip
op-kernel-dev-582b336ec2c0f0076f5650a029fcc9abd4a906f7.tar.gz
sched: add notifier for cross-cpu migrations
Originally from Jeremy Fitzhardinge. Acked-by: Ingo Molnar <mingo@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 0dd42a0..6eb2ed8 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -107,6 +107,14 @@ extern unsigned long this_cpu_load(void);
extern void calc_global_load(unsigned long ticks);
extern void update_cpu_load_nohz(void);
+/* Notifier for when a task gets migrated to a new CPU */
+struct task_migration_notifier {
+ struct task_struct *task;
+ int from_cpu;
+ int to_cpu;
+};
+extern void register_task_migration_notifier(struct notifier_block *n);
+
extern unsigned long get_parent_ip(unsigned long addr);
struct seq_file;
OpenPOWER on IntegriCloud