aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bottom_half.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/bottom_half.h')
-rw-r--r--include/linux/bottom_half.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/bottom_half.h b/include/linux/bottom_half.h
index 27b1bcffe408..37dc35658a1b 100644
--- a/include/linux/bottom_half.h
+++ b/include/linux/bottom_half.h
@@ -1,9 +1,17 @@
1#ifndef _LINUX_BH_H 1#ifndef _LINUX_BH_H
2#define _LINUX_BH_H 2#define _LINUX_BH_H
3 3
4#ifdef CONFIG_PREEMPT_HARDIRQS
5# define local_bh_disable() do { } while (0)
6# define __local_bh_disable(ip) do { } while (0)
7# define _local_bh_enable() do { } while (0)
8# define local_bh_enable() do { } while (0)
9# define local_bh_enable_ip(ip) do { } while (0)
10#else
4extern void local_bh_disable(void); 11extern void local_bh_disable(void);
5extern void _local_bh_enable(void); 12extern void _local_bh_enable(void);
6extern void local_bh_enable(void); 13extern void local_bh_enable(void);
7extern void local_bh_enable_ip(unsigned long ip); 14extern void local_bh_enable_ip(unsigned long ip);
15#endif
8 16
9#endif /* _LINUX_BH_H */ 17#endif /* _LINUX_BH_H */