Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LIBLOCKDEP_RCU_H_
0003 #define _LIBLOCKDEP_RCU_H_
0004 
0005 int rcu_scheduler_active;
0006 
0007 static inline int rcu_lockdep_current_cpu_online(void)
0008 {
0009     return 1;
0010 }
0011 
0012 static inline int rcu_is_cpu_idle(void)
0013 {
0014     return 1;
0015 }
0016 
0017 static inline bool rcu_is_watching(void)
0018 {
0019     return false;
0020 }
0021 
0022 #define rcu_assign_pointer(p, v)    do { (p) = (v); } while (0)
0023 #define RCU_INIT_POINTER(p, v)  do { (p) = (v); } while (0)
0024 
0025 #endif