diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-07-21 22:19:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-07-21 22:19:38 -0400 |
commit | 0f516813ce5aa78b30084cd0cc2e7e2ba1777168 (patch) | |
tree | 7fda885e9288f9204c4e5e1683943a48f4e8115b /arch/sparc | |
parent | 32231a66b4e1b649c346dc76b7d191f7e64a663a (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 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/irq.c | 25 | ||||
-rw-r--r-- | arch/sparc/kernel/irq.h | 20 | ||||
-rw-r--r-- | arch/sparc/kernel/sparc_ksyms.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/sun4d_irq.c | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/tick14.c | 4 |
5 files changed, 46 insertions, 9 deletions
diff --git a/arch/sparc/kernel/irq.c b/arch/sparc/kernel/irq.c index 5e9af3073acf..75b2240ad0f9 100644 --- a/arch/sparc/kernel/irq.c +++ b/arch/sparc/kernel/irq.c | |||
@@ -270,7 +270,7 @@ void free_irq(unsigned int irq, void *dev_id) | |||
270 | kfree(action); | 270 | kfree(action); |
271 | 271 | ||
272 | if (!sparc_irq[cpu_irq].action) | 272 | if (!sparc_irq[cpu_irq].action) |
273 | disable_irq(irq); | 273 | __disable_irq(irq); |
274 | 274 | ||
275 | out_unlock: | 275 | out_unlock: |
276 | spin_unlock_irqrestore(&irq_action_lock, flags); | 276 | spin_unlock_irqrestore(&irq_action_lock, flags); |
@@ -466,7 +466,7 @@ int request_fast_irq(unsigned int irq, | |||
466 | 466 | ||
467 | sparc_irq[cpu_irq].action = action; | 467 | sparc_irq[cpu_irq].action = action; |
468 | 468 | ||
469 | enable_irq(irq); | 469 | __enable_irq(irq); |
470 | 470 | ||
471 | ret = 0; | 471 | ret = 0; |
472 | out_unlock: | 472 | out_unlock: |
@@ -546,7 +546,7 @@ int request_irq(unsigned int irq, | |||
546 | 546 | ||
547 | *actionp = action; | 547 | *actionp = action; |
548 | 548 | ||
549 | enable_irq(irq); | 549 | __enable_irq(irq); |
550 | 550 | ||
551 | ret = 0; | 551 | ret = 0; |
552 | out_unlock: | 552 | out_unlock: |
@@ -557,6 +557,25 @@ out: | |||
557 | 557 | ||
558 | EXPORT_SYMBOL(request_irq); | 558 | EXPORT_SYMBOL(request_irq); |
559 | 559 | ||
560 | void disable_irq_nosync(unsigned int irq) | ||
561 | { | ||
562 | return __disable_irq(irq); | ||
563 | } | ||
564 | EXPORT_SYMBOL(disable_irq_nosync); | ||
565 | |||
566 | void disable_irq(unsigned int irq) | ||
567 | { | ||
568 | return __disable_irq(irq); | ||
569 | } | ||
570 | EXPORT_SYMBOL(disable_irq); | ||
571 | |||
572 | void enable_irq(unsigned int irq) | ||
573 | { | ||
574 | return __enable_irq(irq); | ||
575 | } | ||
576 | |||
577 | EXPORT_SYMBOL(enable_irq); | ||
578 | |||
560 | /* We really don't need these at all on the Sparc. We only have | 579 | /* We really don't need these at all on the Sparc. We only have |
561 | * stubs here because they are exported to modules. | 580 | * stubs here because they are exported to modules. |
562 | */ | 581 | */ |
diff --git a/arch/sparc/kernel/irq.h b/arch/sparc/kernel/irq.h index 8254a86d97d0..32ef3ebd0a88 100644 --- a/arch/sparc/kernel/irq.h +++ b/arch/sparc/kernel/irq.h | |||
@@ -1,11 +1,31 @@ | |||
1 | #include <asm/btfixup.h> | 1 | #include <asm/btfixup.h> |
2 | 2 | ||
3 | /* Dave Redman (djhr@tadpole.co.uk) | ||
4 | * changed these to function pointers.. it saves cycles and will allow | ||
5 | * the irq dependencies to be split into different files at a later date | ||
6 | * sun4c_irq.c, sun4m_irq.c etc so we could reduce the kernel size. | ||
7 | * Jakub Jelinek (jj@sunsite.mff.cuni.cz) | ||
8 | * Changed these to btfixup entities... It saves cycles :) | ||
9 | */ | ||
10 | |||
11 | BTFIXUPDEF_CALL(void, disable_irq, unsigned int) | ||
12 | BTFIXUPDEF_CALL(void, enable_irq, unsigned int) | ||
3 | BTFIXUPDEF_CALL(void, disable_pil_irq, unsigned int) | 13 | BTFIXUPDEF_CALL(void, disable_pil_irq, unsigned int) |
4 | BTFIXUPDEF_CALL(void, enable_pil_irq, unsigned int) | 14 | BTFIXUPDEF_CALL(void, enable_pil_irq, unsigned int) |
5 | BTFIXUPDEF_CALL(void, clear_clock_irq, void) | 15 | BTFIXUPDEF_CALL(void, clear_clock_irq, void) |
6 | BTFIXUPDEF_CALL(void, clear_profile_irq, int) | 16 | BTFIXUPDEF_CALL(void, clear_profile_irq, int) |
7 | BTFIXUPDEF_CALL(void, load_profile_irq, int, unsigned int) | 17 | BTFIXUPDEF_CALL(void, load_profile_irq, int, unsigned int) |
8 | 18 | ||
19 | static inline void __disable_irq(unsigned int irq) | ||
20 | { | ||
21 | BTFIXUP_CALL(disable_irq)(irq); | ||
22 | } | ||
23 | |||
24 | static inline void __enable_irq(unsigned int irq) | ||
25 | { | ||
26 | BTFIXUP_CALL(enable_irq)(irq); | ||
27 | } | ||
28 | |||
9 | static inline void disable_pil_irq(unsigned int irq) | 29 | static inline void disable_pil_irq(unsigned int irq) |
10 | { | 30 | { |
11 | BTFIXUP_CALL(disable_pil_irq)(irq); | 31 | BTFIXUP_CALL(disable_pil_irq)(irq); |
diff --git a/arch/sparc/kernel/sparc_ksyms.c b/arch/sparc/kernel/sparc_ksyms.c index d8e008a04e2b..55bac516dfe2 100644 --- a/arch/sparc/kernel/sparc_ksyms.c +++ b/arch/sparc/kernel/sparc_ksyms.c | |||
@@ -154,8 +154,6 @@ EXPORT_SYMBOL(BTFIXUP_CALL(___xchg32)); | |||
154 | #else | 154 | #else |
155 | EXPORT_SYMBOL(BTFIXUP_CALL(__hard_smp_processor_id)); | 155 | EXPORT_SYMBOL(BTFIXUP_CALL(__hard_smp_processor_id)); |
156 | #endif | 156 | #endif |
157 | EXPORT_SYMBOL(BTFIXUP_CALL(enable_irq)); | ||
158 | EXPORT_SYMBOL(BTFIXUP_CALL(disable_irq)); | ||
159 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_unlockarea)); | 157 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_unlockarea)); |
160 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_lockarea)); | 158 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_lockarea)); |
161 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_sgl)); | 159 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_sgl)); |
diff --git a/arch/sparc/kernel/sun4d_irq.c b/arch/sparc/kernel/sun4d_irq.c index 7a09186a432e..e0efab2a6bef 100644 --- a/arch/sparc/kernel/sun4d_irq.c +++ b/arch/sparc/kernel/sun4d_irq.c | |||
@@ -190,7 +190,7 @@ void sun4d_free_irq(unsigned int irq, void *dev_id) | |||
190 | kfree(action); | 190 | kfree(action); |
191 | 191 | ||
192 | if (!(*actionp)) | 192 | if (!(*actionp)) |
193 | disable_irq(irq); | 193 | __disable_irq(irq); |
194 | 194 | ||
195 | out_unlock: | 195 | out_unlock: |
196 | spin_unlock_irqrestore(&irq_action_lock, flags); | 196 | spin_unlock_irqrestore(&irq_action_lock, flags); |
@@ -348,7 +348,7 @@ int sun4d_request_irq(unsigned int irq, | |||
348 | else | 348 | else |
349 | *actionp = action; | 349 | *actionp = action; |
350 | 350 | ||
351 | enable_irq(irq); | 351 | __enable_irq(irq); |
352 | 352 | ||
353 | ret = 0; | 353 | ret = 0; |
354 | out_unlock: | 354 | out_unlock: |
diff --git a/arch/sparc/kernel/tick14.c b/arch/sparc/kernel/tick14.c index a55f0463b929..707bfda86570 100644 --- a/arch/sparc/kernel/tick14.c +++ b/arch/sparc/kernel/tick14.c | |||
@@ -64,7 +64,7 @@ void claim_ticker14(irq_handler_t handler, | |||
64 | 64 | ||
65 | /* first we copy the obp handler instructions | 65 | /* first we copy the obp handler instructions |
66 | */ | 66 | */ |
67 | disable_irq(irq_nr); | 67 | __disable_irq(irq_nr); |
68 | if (!handler) | 68 | if (!handler) |
69 | return; | 69 | return; |
70 | 70 | ||
@@ -81,6 +81,6 @@ void claim_ticker14(irq_handler_t handler, | |||
81 | NULL)) { | 81 | NULL)) { |
82 | install_linux_ticker(); | 82 | install_linux_ticker(); |
83 | load_profile_irq(cpu, timeout); | 83 | load_profile_irq(cpu, timeout); |
84 | enable_irq(irq_nr); | 84 | __enable_irq(irq_nr); |
85 | } | 85 | } |
86 | } | 86 | } |