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

Commit 22507ed9 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu: Remove unused and redundant interfaces



The rcu_dereference_bh_protected() and rcu_dereference_sched_protected()
macros are synonyms for rcu_dereference_protected() and are not used
anywhere in mainline.  This commit therefore removes them.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 8cd889cb
Loading
Loading
Loading
Loading
+0 −20
Original line number Original line Diff line number Diff line
@@ -578,26 +578,6 @@ extern int rcu_my_thread_group_empty(void);
#define rcu_dereference_protected(p, c) \
#define rcu_dereference_protected(p, c) \
	__rcu_dereference_protected((p), (c), __rcu)
	__rcu_dereference_protected((p), (c), __rcu)


/**
 * rcu_dereference_bh_protected() - fetch RCU-bh pointer when updates prevented
 * @p: The pointer to read, prior to dereferencing
 * @c: The conditions under which the dereference will take place
 *
 * This is the RCU-bh counterpart to rcu_dereference_protected().
 */
#define rcu_dereference_bh_protected(p, c) \
	__rcu_dereference_protected((p), (c), __rcu)

/**
 * rcu_dereference_sched_protected() - fetch RCU-sched pointer when updates prevented
 * @p: The pointer to read, prior to dereferencing
 * @c: The conditions under which the dereference will take place
 *
 * This is the RCU-sched counterpart to rcu_dereference_protected().
 */
#define rcu_dereference_sched_protected(p, c) \
	__rcu_dereference_protected((p), (c), __rcu)



/**
/**
 * rcu_dereference() - fetch RCU-protected pointer for dereferencing
 * rcu_dereference() - fetch RCU-protected pointer for dereferencing