rcu.h 399 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LIBLOCKDEP_RCU_H_
  3. #define _LIBLOCKDEP_RCU_H_
  4. int rcu_scheduler_active;
  5. static inline int rcu_lockdep_current_cpu_online(void)
  6. {
  7. return 1;
  8. }
  9. static inline int rcu_is_cpu_idle(void)
  10. {
  11. return 1;
  12. }
  13. static inline bool rcu_is_watching(void)
  14. {
  15. return false;
  16. }
  17. #define rcu_assign_pointer(p, v) ((p) = (v))
  18. #define RCU_INIT_POINTER(p, v) p=(v)
  19. #endif