Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da7b3eab authored by Mathieu Desnoyers's avatar Mathieu Desnoyers Committed by Ingo Molnar
Browse files

tracepoints: use rcu_*_sched_notrace



Make sure tracepoints can be called within ftrace callbacks.

Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent de0baf9a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -40,14 +40,14 @@ struct tracepoint {
	do {								\
		void **it_func;						\
									\
		rcu_read_lock_sched();					\
		rcu_read_lock_sched_notrace();				\
		it_func = rcu_dereference((tp)->funcs);			\
		if (it_func) {						\
			do {						\
				((void(*)(proto))(*it_func))(args);	\
			} while (*(++it_func));				\
		}							\
		rcu_read_unlock_sched();				\
		rcu_read_unlock_sched_notrace();			\
	} while (0)

/*