kbuild: Fix instrumentation removal breakage on avr32
[wrt350n-kernel.git] / arch / sparc / kernel / irq.h
blob32ef3ebd0a88a58eca6051634db2504425753929
1 #include <asm/btfixup.h>
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 */
11 BTFIXUPDEF_CALL(void, disable_irq, unsigned int)
12 BTFIXUPDEF_CALL(void, enable_irq, unsigned int)
13 BTFIXUPDEF_CALL(void, disable_pil_irq, unsigned int)
14 BTFIXUPDEF_CALL(void, enable_pil_irq, unsigned int)
15 BTFIXUPDEF_CALL(void, clear_clock_irq, void)
16 BTFIXUPDEF_CALL(void, clear_profile_irq, int)
17 BTFIXUPDEF_CALL(void, load_profile_irq, int, unsigned int)
19 static inline void __disable_irq(unsigned int irq)
21 BTFIXUP_CALL(disable_irq)(irq);
24 static inline void __enable_irq(unsigned int irq)
26 BTFIXUP_CALL(enable_irq)(irq);
29 static inline void disable_pil_irq(unsigned int irq)
31 BTFIXUP_CALL(disable_pil_irq)(irq);
34 static inline void enable_pil_irq(unsigned int irq)
36 BTFIXUP_CALL(enable_pil_irq)(irq);
39 static inline void clear_clock_irq(void)
41 BTFIXUP_CALL(clear_clock_irq)();
44 static inline void clear_profile_irq(int irq)
46 BTFIXUP_CALL(clear_profile_irq)(irq);
49 static inline void load_profile_irq(int cpu, int limit)
51 BTFIXUP_CALL(load_profile_irq)(cpu, limit);
54 extern void (*sparc_init_timers)(irq_handler_t lvl10_irq);
56 extern void claim_ticker14(irq_handler_t irq_handler,
57 int irq,
58 unsigned int timeout);
60 #ifdef CONFIG_SMP
61 BTFIXUPDEF_CALL(void, set_cpu_int, int, int)
62 BTFIXUPDEF_CALL(void, clear_cpu_int, int, int)
63 BTFIXUPDEF_CALL(void, set_irq_udt, int)
65 #define set_cpu_int(cpu,level) BTFIXUP_CALL(set_cpu_int)(cpu,level)
66 #define clear_cpu_int(cpu,level) BTFIXUP_CALL(clear_cpu_int)(cpu,level)
67 #define set_irq_udt(cpu) BTFIXUP_CALL(set_irq_udt)(cpu)
68 #endif