aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-07-21 22:19:38 -0400
committerDavid S. Miller <davem@davemloft.net>2007-07-21 22:19:38 -0400
commit0f516813ce5aa78b30084cd0cc2e7e2ba1777168 (patch)
tree7fda885e9288f9204c4e5e1683943a48f4e8115b /include/asm-sparc
parent32231a66b4e1b649c346dc76b7d191f7e64a663a (diff)
[SPARC32]: Take enable_irq/disable_irq out of line.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc')
-rw-r--r--include/asm-sparc/irq.h32
1 files changed, 3 insertions, 29 deletions
diff --git a/include/asm-sparc/irq.h b/include/asm-sparc/irq.h
index 45827934f7bc..afb88a5973f0 100644
--- a/include/asm-sparc/irq.h
+++ b/include/asm-sparc/irq.h
@@ -7,41 +7,15 @@
7#ifndef _SPARC_IRQ_H 7#ifndef _SPARC_IRQ_H
8#define _SPARC_IRQ_H 8#define _SPARC_IRQ_H
9 9
10#include <linux/linkage.h>
11#include <linux/threads.h> /* For NR_CPUS */
12#include <linux/interrupt.h> 10#include <linux/interrupt.h>
13 11
14#include <asm/system.h> /* For SUN4M_NCPUS */
15#include <asm/btfixup.h>
16
17#define NR_IRQS 16 12#define NR_IRQS 16
18 13
19#define irq_canonicalize(irq) (irq) 14#define irq_canonicalize(irq) (irq)
20 15
21/* Dave Redman (djhr@tadpole.co.uk) 16extern void disable_irq_nosync(unsigned int irq);
22 * changed these to function pointers.. it saves cycles and will allow 17extern void disable_irq(unsigned int irq);
23 * the irq dependencies to be split into different files at a later date 18extern void enable_irq(unsigned int irq);
24 * sun4c_irq.c, sun4m_irq.c etc so we could reduce the kernel size.
25 * Jakub Jelinek (jj@sunsite.mff.cuni.cz)
26 * Changed these to btfixup entities... It saves cycles :)
27 */
28BTFIXUPDEF_CALL(void, disable_irq, unsigned int)
29BTFIXUPDEF_CALL(void, enable_irq, unsigned int)
30
31static inline void disable_irq_nosync(unsigned int irq)
32{
33 BTFIXUP_CALL(disable_irq)(irq);
34}
35
36static inline void disable_irq(unsigned int irq)
37{
38 BTFIXUP_CALL(disable_irq)(irq);
39}
40
41static inline void enable_irq(unsigned int irq)
42{
43 BTFIXUP_CALL(enable_irq)(irq);
44}
45 19
46extern int request_fast_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, __const__ char *devname); 20extern int request_fast_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, __const__ char *devname);
47 21