aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2007-07-21 18:29:12 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-22 14:44:00 -0400
commite9ed7e722e3f4cea07cf3c4bfe98c18180a17793 (patch)
treeb1372269f948f5dead789fece8539d7f4de58be0 /arch
parente6f194d8f6f50da6837af637b2fd839c34185f7a (diff)
take declarations of enable_irq() et.al. to linux/interrupt.h
Now that the last inlined instances are gone, all that is left to do is turning disable_irq_nosync on arm26 and m68k from defines to aliases and we are all set - we can make these externs in linux/interrupt.h uncoditional and kill remaining instances in asm/irq.h Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm26/kernel/armksyms.c2
-rw-r--r--arch/arm26/kernel/irq.c6
-rw-r--r--arch/m68k/kernel/ints.c4
3 files changed, 10 insertions, 2 deletions
diff --git a/arch/arm26/kernel/armksyms.c b/arch/arm26/kernel/armksyms.c
index f735d7e018e4..fe1e3ceed7cb 100644
--- a/arch/arm26/kernel/armksyms.c
+++ b/arch/arm26/kernel/armksyms.c
@@ -107,8 +107,6 @@ EXPORT_SYMBOL(__bug);
107#endif 107#endif
108EXPORT_SYMBOL(__bad_xchg); 108EXPORT_SYMBOL(__bad_xchg);
109EXPORT_SYMBOL(__readwrite_bug); 109EXPORT_SYMBOL(__readwrite_bug);
110EXPORT_SYMBOL(enable_irq);
111EXPORT_SYMBOL(disable_irq);
112EXPORT_SYMBOL(set_irq_type); 110EXPORT_SYMBOL(set_irq_type);
113EXPORT_SYMBOL(pm_idle); 111EXPORT_SYMBOL(pm_idle);
114EXPORT_SYMBOL(pm_power_off); 112EXPORT_SYMBOL(pm_power_off);
diff --git a/arch/arm26/kernel/irq.c b/arch/arm26/kernel/irq.c
index d53382c83bf9..2ffe695b062e 100644
--- a/arch/arm26/kernel/irq.c
+++ b/arch/arm26/kernel/irq.c
@@ -95,6 +95,11 @@ void disable_irq(unsigned int irq)
95 desc->enabled = 0; 95 desc->enabled = 0;
96 spin_unlock_irqrestore(&irq_controller_lock, flags); 96 spin_unlock_irqrestore(&irq_controller_lock, flags);
97} 97}
98EXPORT_SYMBOL(disable_irq);
99
100void disable_irq_nosync(unsigned int irq) __attribute__((alias("disable_irq")));
101
102EXPORT_SYMBOL(disable_irq_nosync);
98 103
99/** 104/**
100 * enable_irq - enable interrupt handling on an irq 105 * enable_irq - enable interrupt handling on an irq
@@ -131,6 +136,7 @@ void enable_irq(unsigned int irq)
131 } 136 }
132 spin_unlock_irqrestore(&irq_controller_lock, flags); 137 spin_unlock_irqrestore(&irq_controller_lock, flags);
133} 138}
139EXPORT_SYMBOL(enable_irq);
134 140
135int show_interrupts(struct seq_file *p, void *v) 141int show_interrupts(struct seq_file *p, void *v)
136{ 142{
diff --git a/arch/m68k/kernel/ints.c b/arch/m68k/kernel/ints.c
index 60d4d75f5798..2b412454cb41 100644
--- a/arch/m68k/kernel/ints.c
+++ b/arch/m68k/kernel/ints.c
@@ -326,6 +326,10 @@ void disable_irq(unsigned int irq)
326 326
327EXPORT_SYMBOL(disable_irq); 327EXPORT_SYMBOL(disable_irq);
328 328
329void disable_irq_nosync(unsigned int irq) __attribute__((alias("disable_irq")));
330
331EXPORT_SYMBOL(disable_irq_nosync);
332
329int m68k_irq_startup(unsigned int irq) 333int m68k_irq_startup(unsigned int irq)
330{ 334{
331 if (irq <= IRQ_AUTO_7) 335 if (irq <= IRQ_AUTO_7)