From: Paul E. McKenney Date: Wed, 7 Nov 2018 23:25:13 +0000 (-0800) Subject: tools/kernel.h: Replace synchronize_sched() with synchronize_rcu() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4a67e3a79e3bdc47dfd0c85a1888067d95a0282c;p=linux.git 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 Cc: Matthew Wilcox Cc: --- diff --git a/tools/include/linux/kernel.h b/tools/include/linux/kernel.h index 6935ef94e77ab..857d9e22826e6 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