Skip to content

Commit 4a67e3a

Browse files
author
Paul E. McKenney
committed
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>
1 parent dd06d25 commit 4a67e3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/include/linux/kernel.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ int scnprintf(char * buf, size_t size, const char * fmt, ...);
116116
#define round_down(x, y) ((x) & ~__round_mask(x, y))
117117

118118
#define current_gfp_context(k) 0
119-
#define synchronize_sched()
119+
#define synchronize_rcu()
120120

121121
#endif

0 commit comments

Comments
 (0)