blob: 5080649dad04982416e415efb71d51c66a97c1cc [file] [log] [blame]
Sasha Levin5634bd72013-06-13 18:41:17 -04001#ifndef _LIBLOCKDEP_RCU_H_
2#define _LIBLOCKDEP_RCU_H_
3
4int rcu_scheduler_active;
5
6static inline int rcu_lockdep_current_cpu_online(void)
7{
8 return 1;
9}
10
11static inline int rcu_is_cpu_idle(void)
12{
13 return 1;
14}
15
Sasha Levin9e3513b2014-02-05 17:58:37 -050016static inline bool rcu_is_watching(void)
17{
18 return false;
19}
20
Levin, Alexander (Sasha Levin)6c8e6482017-05-25 12:58:47 +000021#define rcu_assign_pointer(p, v) ((p) = (v))
Levin, Alexander (Sasha Levin)e58e8712017-05-31 00:38:09 +000022#define RCU_INIT_POINTER(p, v) p=(v)
Levin, Alexander (Sasha Levin)6c8e6482017-05-25 12:58:47 +000023
Sasha Levin5634bd72013-06-13 18:41:17 -040024#endif