direct-io.hg

view xen/include/xen/softirq.h @ 4178:472fc0582569

bitkeeper revision 1.1236.34.10 (42380193mzvNMhYda5OtA1f6-GGu8w)

Fix ia64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Mar 16 09:51:15 2005 +0000 (2005-03-16)
parents 6a97e01e0c4e
children 5b5ebfc03e24 8ba8ae4eba9b
line source
1 #ifndef __XEN_SOFTIRQ_H__
2 #define __XEN_SOFTIRQ_H__
4 /* Common softirqs come first in the following list. */
5 #define AC_TIMER_SOFTIRQ 0
6 #define SCHEDULE_SOFTIRQ 1
7 #define NEW_TLBFLUSH_CLOCK_PERIOD_SOFTIRQ 2
8 #define KEYPRESS_SOFTIRQ 3
9 #define NMI_SOFTIRQ 4
10 #define NR_SOFTIRQS 5
12 #ifndef __ASSEMBLY__
14 #include <xen/config.h>
15 #include <xen/lib.h>
16 #include <xen/smp.h>
17 #include <asm/bitops.h>
18 #include <asm/hardirq.h>
20 typedef void (*softirq_handler)(void);
22 asmlinkage void do_softirq(void);
23 extern void open_softirq(int nr, softirq_handler handler);
25 static inline void cpu_raise_softirq(unsigned int cpu, unsigned int nr)
26 {
27 if ( !test_and_set_bit(nr, &softirq_pending(cpu)) )
28 smp_send_event_check_cpu(cpu);
29 }
31 static inline void raise_softirq(unsigned int nr)
32 {
33 set_bit(nr, &softirq_pending(smp_processor_id()));
34 }
36 #endif /* __ASSEMBLY__ */
38 #endif /* __XEN_SOFTIRQ_H__ */