blob: 9554d3fa54f3336ea96d30a133338a29e2d71e2e [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#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
17static inline bool rcu_is_watching(void)
18{
19 return false;
20}
21
David Brazdil0f672f62019-12-10 10:32:29 +000022#define rcu_assign_pointer(p, v) do { (p) = (v); } while (0)
23#define RCU_INIT_POINTER(p, v) do { (p) = (v); } while (0)
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000024
25#endif