From 6a9460a8a07abc6820a9b04a86af2f0a082a8a43 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 16:57:42 -0400 Subject: [PATCH] lttng-events.h: remove compatibility code (rcu) --- lttng-events.c | 14 -------------- 1 file changed, 14 deletions(-) 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) -- 2.34.1