This source file includes following definitions.
- do_bottom_half
1
2
3
4
5
6
7
8
9
10
11 #include <linux/ptrace.h>
12 #include <linux/errno.h>
13 #include <linux/kernel_stat.h>
14 #include <linux/signal.h>
15 #include <linux/sched.h>
16 #include <linux/interrupt.h>
17
18 #include <asm/system.h>
19 #include <asm/io.h>
20 #include <asm/irq.h>
21 #include <asm/bitops.h>
22
23 #define INCLUDE_INLINE_FUNCS
24 #include <linux/tqueue.h>
25
26 unsigned long intr_count = 0;
27
28 unsigned long bh_active = 0;
29 unsigned long bh_mask = ~0UL;
30 struct bh_struct bh_base[32];
31
32
33 asmlinkage void do_bottom_half(void)
34 {
35 unsigned long active;
36 unsigned long mask, left;
37 struct bh_struct *bh;
38
39 bh = bh_base;
40 active = bh_active & bh_mask;
41 for (mask = 1, left = ~0 ; left & active ; bh++,mask += mask,left += left) {
42 if (mask & active) {
43 void (*fn)(void *);
44 bh_active &= ~mask;
45 fn = bh->routine;
46 if (!fn)
47 goto bad_bh;
48 fn(bh->data);
49 }
50 }
51 return;
52 bad_bh:
53 printk ("irq.c:bad bottom half entry %08lx\n", mask);
54 }