Optimize andes_clear_page() and andes_copy_page() with prefetch
[linux-2.6/linux-mips.git] / include / asm-sparc64 / softirq.h
blobb224a279a5ed13d9d9143e97398c029941fe4106
1 /* softirq.h: 64-bit Sparc soft IRQ support.
3 * Copyright (C) 1997, 1998 David S. Miller (davem@caip.rutgers.edu)
4 */
6 #ifndef __SPARC64_SOFTIRQ_H
7 #define __SPARC64_SOFTIRQ_H
9 #include <linux/config.h>
10 #include <asm/atomic.h>
11 #include <asm/hardirq.h>
12 #include <asm/system.h> /* for membar() */
14 #ifndef CONFIG_SMP
15 extern unsigned int __local_bh_count;
16 #define local_bh_count(cpu) __local_bh_count
17 #else
18 #define local_bh_count(cpu) (cpu_data[cpu].bh_count)
19 #endif
21 #define local_bh_disable() (local_bh_count(smp_processor_id())++)
22 #define local_bh_enable() (local_bh_count(smp_processor_id())--)
24 #define in_softirq() (local_bh_count(smp_processor_id()) != 0)
26 #endif /* !(__SPARC64_SOFTIRQ_H) */