mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
9129b017b5
Quoting Paul [1]: "Given that a quick (and perhaps error-prone) search of the uses of rcu_assign_pointer() in v5.1 didn't find a single use of the return value, let's please instead change the documentation and implementation to eliminate the return value." [1] https://lkml.kernel.org/r/20190523135013.GL28207@linux.ibm.com Signed-off-by: Andrea Parri <andrea.parri@amarulasolutions.com> Cc: "Paul E. McKenney" <paulmck@linux.ibm.com> Cc: Josh Triplett <josh@joshtriplett.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Lai Jiangshan <jiangshanlai@gmail.com> Cc: Joel Fernandes <joel@joelfernandes.org> Cc: rcu@vger.kernel.org Cc: Peter Zijlstra <peterz@infradead.org> Cc: Will Deacon <will.deacon@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Sasha Levin <sashal@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
26 lines
437 B
C
26 lines
437 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LIBLOCKDEP_RCU_H_
|
|
#define _LIBLOCKDEP_RCU_H_
|
|
|
|
int rcu_scheduler_active;
|
|
|
|
static inline int rcu_lockdep_current_cpu_online(void)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
static inline int rcu_is_cpu_idle(void)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
static inline bool rcu_is_watching(void)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
#define rcu_assign_pointer(p, v) do { (p) = (v); } while (0)
|
|
#define RCU_INIT_POINTER(p, v) do { (p) = (v); } while (0)
|
|
|
|
#endif
|