summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.ibm.com>2018-11-08 02:25:13 +0300
committerPaul E. McKenney <paulmck@linux.ibm.com>2018-12-01 23:38:51 +0300
commit4a67e3a79e3bdc47dfd0c85a1888067d95a0282c (patch)
treed4c78f1e9acf06345ceab3174bd6112c57d441c0 /tools/include
parentdd06d25d06f4932c570540877eba88d868dbba9b (diff)
downloadlinux-4a67e3a79e3bdc47dfd0c85a1888067d95a0282c.tar.xz
tools/kernel.h: Replace synchronize_sched() with synchronize_rcu()
Now that synchronize_rcu() waits for preempt-disable regions of code as well as RCU read-side critical sections, synchronize_sched() can be replaced by synchronize_rcu(). This commit therefore makes this change, even though it is but a comment. Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: <linux-kernel@vger.kernel.org>
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/linux/kernel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/linux/kernel.h b/tools/include/linux/kernel.h
index 6935ef94e77a..857d9e22826e 100644
--- a/tools/include/linux/kernel.h
+++ b/tools/include/linux/kernel.h
@@ -116,6 +116,6 @@ int scnprintf(char * buf, size_t size, const char * fmt, ...);
#define round_down(x, y) ((x) & ~__round_mask(x, y))
#define current_gfp_context(k) 0
-#define synchronize_sched()
+#define synchronize_rcu()
#endif