diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-05-14 11:30:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-14 17:05:08 -0400 |
commit | 08c9388f5816ac9285dce7d07c8867ae1c1e4bcb (patch) | |
tree | b2de0ea20a6187a9375b6fa1f9c5a6193d95786c /arch/sparc/kernel/irq.h | |
parent | 4ba22b16bbf354822b7988ec5b4b35774dcd479f (diff) |
sparc32: remove remaining users of btfixup
Use sparc_config to hold the last two function pointers. There was no
point generating dedicated _ops structures only for these.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/irq.h')
-rw-r--r-- | arch/sparc/kernel/irq.h | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/arch/sparc/kernel/irq.h b/arch/sparc/kernel/irq.h index e40ca6c0076a..f558f710ee51 100644 --- a/arch/sparc/kernel/irq.h +++ b/arch/sparc/kernel/irq.h | |||
@@ -70,6 +70,9 @@ struct sparc_config { | |||
70 | 70 | ||
71 | /* function to obtain offsett for cs period */ | 71 | /* function to obtain offsett for cs period */ |
72 | unsigned int (*get_cycles_offset)(void); | 72 | unsigned int (*get_cycles_offset)(void); |
73 | |||
74 | void (*clear_clock_irq)(void); | ||
75 | void (*load_profile_irq)(int cpu, unsigned int limit); | ||
73 | }; | 76 | }; |
74 | extern struct sparc_config sparc_config; | 77 | extern struct sparc_config sparc_config; |
75 | 78 | ||
@@ -78,27 +81,6 @@ void irq_link(unsigned int irq); | |||
78 | void irq_unlink(unsigned int irq); | 81 | void irq_unlink(unsigned int irq); |
79 | void handler_irq(unsigned int pil, struct pt_regs *regs); | 82 | void handler_irq(unsigned int pil, struct pt_regs *regs); |
80 | 83 | ||
81 | /* Dave Redman (djhr@tadpole.co.uk) | ||
82 | * changed these to function pointers.. it saves cycles and will allow | ||
83 | * the irq dependencies to be split into different files at a later date | ||
84 | * sun4m_irq.c etc so we could reduce the kernel size. | ||
85 | * Jakub Jelinek (jj@sunsite.mff.cuni.cz) | ||
86 | * Changed these to btfixup entities... It saves cycles :) | ||
87 | */ | ||
88 | |||
89 | BTFIXUPDEF_CALL(void, clear_clock_irq, void) | ||
90 | BTFIXUPDEF_CALL(void, load_profile_irq, int, unsigned int) | ||
91 | |||
92 | static inline void clear_clock_irq(void) | ||
93 | { | ||
94 | BTFIXUP_CALL(clear_clock_irq)(); | ||
95 | } | ||
96 | |||
97 | static inline void load_profile_irq(int cpu, int limit) | ||
98 | { | ||
99 | BTFIXUP_CALL(load_profile_irq)(cpu, limit); | ||
100 | } | ||
101 | |||
102 | unsigned long leon_get_irqmask(unsigned int irq); | 84 | unsigned long leon_get_irqmask(unsigned int irq); |
103 | 85 | ||
104 | #ifdef CONFIG_SMP | 86 | #ifdef CONFIG_SMP |