aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/smp_types.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-06-29 17:21:32 -0700
committerPaul E. McKenney <paulmck@kernel.org>2020-09-04 11:50:50 -0700
commite48c15b796d412ede883bb2ef7779b2a142f7962 (patch)
treef59df2675d2b3326e583e8dfeb661394f0054702 /include/linux/smp_types.h
parentlib: Add backtrace_idle parameter to force backtrace of idle CPUs (diff)
downloadlinux-dev-e48c15b796d412ede883bb2ef7779b2a142f7962.tar.xz
linux-dev-e48c15b796d412ede883bb2ef7779b2a142f7962.zip
smp: Add source and destination CPUs to __call_single_data
This commit adds a destination CPU to __call_single_data, and is inspired by an earlier commit by Peter Zijlstra. This version adds #ifdef to permit use by 32-bit systems and supplying the destination CPU for all smp_call_function*() requests, not just smp_call_function_single(). If need be, 32-bit systems could be accommodated by shrinking the flags field to 16 bits (the atomic_t variant is currently unused) and by providing only eight bits for CPU on such systems. It is not clear that the addition of the fields to __call_single_node are really needed. [ paulmck: Apply Boqun Feng feedback on 32-bit builds. ] Link: https://lore.kernel.org/lkml/20200615164048.GC2531@hirez.programming.kicks-ass.net/ Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/smp_types.h')
-rw-r--r--include/linux/smp_types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/smp_types.h b/include/linux/smp_types.h
index 364b3ae3e41d..2e8461af8df6 100644
--- a/include/linux/smp_types.h
+++ b/include/linux/smp_types.h
@@ -61,6 +61,9 @@ struct __call_single_node {
unsigned int u_flags;
atomic_t a_flags;
};
+#ifdef CONFIG_64BIT
+ u16 src, dst;
+#endif
};
#endif /* __LINUX_SMP_TYPES_H */