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