From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 20:57:42 +0000 (-0400) Subject: lttng-events.h: remove compatibility code (rcu) X-Git-Tag: for-upstreaming-review-1~24 X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=6a9460a8a07abc6820a9b04a86af2f0a082a8a43 lttng-events.h: remove compatibility code (rcu) --- diff --git a/lttng-events.c b/lttng-events.c index b2eeec71..298360ce 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -71,21 +71,7 @@ int _lttng_field_statedump(struct lttng_session *session, void synchronize_trace(void) { -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,1,0)) synchronize_rcu(); -#else - synchronize_sched(); -#endif - -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)) -#ifdef CONFIG_PREEMPT_RT_FULL - synchronize_rcu(); -#endif -#else /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)) */ -#ifdef CONFIG_PREEMPT_RT - synchronize_rcu(); -#endif -#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)) */ } void lttng_lock_sessions(void)