summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2012-11-28 02:28:54 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2012-11-28 02:29:09 +0100
commit582b336ec2c0f0076f5650a029fcc9abd4a906f7 (patch)
tree4827fe468a1aac8be0227cac5bab922b32c2facc /include
parentx86: pvclock: add note about rdtsc barriers (diff)
downloadlinux-582b336ec2c0f0076f5650a029fcc9abd4a906f7.tar.xz
linux-582b336ec2c0f0076f5650a029fcc9abd4a906f7.zip
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')
-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 0dd42a02df2e..6eb2ed819e36 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;