blob: 7d02527e5bcea4bd577c8f7062fc0c92a00be218 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Sasha Levin5634bd72013-06-13 18:41:17 -04002#ifndef _LIBLOCKDEP_RCU_H_
3#define _LIBLOCKDEP_RCU_H_
4
5int rcu_scheduler_active;
6
7static inline int rcu_lockdep_current_cpu_online(void)
8{
9 return 1;
10}
11
12static inline int rcu_is_cpu_idle(void)
13{
14 return 1;
15}
16
Sasha Levin9e3513b2014-02-05 17:58:37 -050017static inline bool rcu_is_watching(void)
18{
19 return false;
20}
21
Levin, Alexander (Sasha Levin)6c8e6482017-05-25 12:58:47 +000022#define rcu_assign_pointer(p, v) ((p) = (v))
Levin, Alexander (Sasha Levin)e58e8712017-05-31 00:38:09 +000023#define RCU_INIT_POINTER(p, v) p=(v)
Levin, Alexander (Sasha Levin)6c8e6482017-05-25 12:58:47 +000024
Sasha Levin5634bd72013-06-13 18:41:17 -040025#endif