1*8b3e3662SFrançois Tigeot /*
2*8b3e3662SFrançois Tigeot * Copyright (c) 2020 François Tigeot <ftigeot@wolfpond.org>
3*8b3e3662SFrançois Tigeot * All rights reserved.
4*8b3e3662SFrançois Tigeot *
5*8b3e3662SFrançois Tigeot * Redistribution and use in source and binary forms, with or without
6*8b3e3662SFrançois Tigeot * modification, are permitted provided that the following conditions
7*8b3e3662SFrançois Tigeot * are met:
8*8b3e3662SFrançois Tigeot * 1. Redistributions of source code must retain the above copyright
9*8b3e3662SFrançois Tigeot * notice unmodified, this list of conditions, and the following
10*8b3e3662SFrançois Tigeot * disclaimer.
11*8b3e3662SFrançois Tigeot * 2. Redistributions in binary form must reproduce the above copyright
12*8b3e3662SFrançois Tigeot * notice, this list of conditions and the following disclaimer in the
13*8b3e3662SFrançois Tigeot * documentation and/or other materials provided with the distribution.
14*8b3e3662SFrançois Tigeot *
15*8b3e3662SFrançois Tigeot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16*8b3e3662SFrançois Tigeot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17*8b3e3662SFrançois Tigeot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18*8b3e3662SFrançois Tigeot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19*8b3e3662SFrançois Tigeot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20*8b3e3662SFrançois Tigeot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21*8b3e3662SFrançois Tigeot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22*8b3e3662SFrançois Tigeot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23*8b3e3662SFrançois Tigeot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24*8b3e3662SFrançois Tigeot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25*8b3e3662SFrançois Tigeot */
26*8b3e3662SFrançois Tigeot
27*8b3e3662SFrançois Tigeot #ifndef _LINUX_RCUTREE_H_
28*8b3e3662SFrançois Tigeot #define _LINUX_RCUTREE_H_
29*8b3e3662SFrançois Tigeot
rcu_barrier(void)30*8b3e3662SFrançois Tigeot static inline void rcu_barrier(void) {}
31*8b3e3662SFrançois Tigeot
32*8b3e3662SFrançois Tigeot static inline void
synchronize_rcu_expedited(void)33*8b3e3662SFrançois Tigeot synchronize_rcu_expedited(void)
34*8b3e3662SFrançois Tigeot {
35*8b3e3662SFrançois Tigeot cpu_mfence();
36*8b3e3662SFrançois Tigeot }
37*8b3e3662SFrançois Tigeot
38*8b3e3662SFrançois Tigeot #endif /* _LINUX_RCUTREE_H_ */
39