genirq: Remove __do_IRQ() and cleanup irq related Kconfigs
Subsystems (10)
cover genirq: Remove __do_IRQ() and cleanup irq related Kconfigs
Now that rc1 is out, I got reliable information about the remaining users of __do_IRQ(), which block the removal:
arch/cris, arch/h8300, arch/m32r
The following series converts these architectures to proper flow handlers and removes __do_IRQ(). Aside of that if cleans up the irq related Kconfigs in the architectures and switches them to the generic Kconfig in kernel/irq/
The __do_IRQ() removal is only compile tested, but
- the CRIS maintainer said some time ago he is fine with breakage and will deal with the fallout
- h8300 and m32r are basically unmaintained. The last updates from the maintainer side have been more than a year ago.
The conversion of all 3 architectures is straight forward and with low risc, though it's only compile tested with all available defconfigs as far as it goes. Some of them do not build in vanilla either, but the converted files build fine.
The last chunk of this patch series is a straight forward conversion of architectures to use the generic irq Kconfig file. Compile tested and boot tested on a few.
That said, if there are no objections and Linus does not go berserk on me, I'd like to get over with this right now.
Thanks,
tglx
--- Documentation/feature-removal-schedule.txt | 8 - arch/alpha/Kconfig | 19 -- arch/blackfin/Kconfig | 17 -- arch/cris/Kconfig | 6 arch/cris/arch-v10/kernel/irq.c | 41 +---- arch/cris/arch-v32/kernel/irq.c | 50 +----- arch/cris/kernel/irq.c | 6 arch/frv/Kconfig | 9 - arch/h8300/Kconfig | 6 arch/h8300/kernel/irq.c | 50 ++---- arch/ia64/Kconfig | 26 --- arch/m32r/Kconfig | 11 - arch/m32r/kernel/irq.c | 10 - arch/m32r/platforms/m32104ut/setup.c | 58 ++----- arch/m32r/platforms/m32700ut/setup.c | 214 +++++++++------------------- arch/m32r/platforms/mappi/setup.c | 78 +++------- arch/m32r/platforms/mappi2/setup.c | 89 +++-------- arch/m32r/platforms/mappi3/setup.c | 92 ++++-------- arch/m32r/platforms/oaks32r/setup.c | 65 ++------ arch/m32r/platforms/opsput/setup.c | 220 +++++++++-------------------- arch/m32r/platforms/usrv/setup.c | 115 +++++---------- arch/m68knommu/Kconfig | 9 - arch/microblaze/Kconfig | 11 - arch/mips/Kconfig | 3 arch/mn10300/Kconfig | 8 - arch/parisc/Kconfig | 18 -- arch/powerpc/Kconfig | 28 --- arch/score/Kconfig | 10 - arch/sparc/Kconfig | 9 - arch/tile/Kconfig | 19 -- arch/um/Kconfig.common | 6 arch/um/Kconfig.um | 3 include/linux/irqdesc.h | 14 - kernel/irq/Kconfig | 3 kernel/irq/handle.c | 111 -------------- 35 files changed, 413 insertions(+), 1029 deletions(-)
PATCH 1/37 h8300: Convert to new irq_chip functions
No functional change, just straight forward conversion.
--- arch/h8300/kernel/irq.c | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-)
arch/h8300/kernel/irq.c +16 -17
@@ -38,34 +38,34 @@ static inline int is_ext_irq(unsigned inreturn (irq >=EXT_IRQ0 && irq <= (EXT_IRQ0 +EXT_IRQS )); } -static void h8300_enable_irq (unsigned int irq) +static void h8300_enable_irq (struct irq_data *data) { -if (is_ext_irq (irq)) -IER_REGS |=1 << (irq -EXT_IRQ0 ); +if (is_ext_irq (data->irq)) +IER_REGS |=1 << (data->irq -EXT_IRQ0 ); } -static void h8300_disable_irq (unsigned int irq) +static void h8300_disable_irq (struct irq_data *data) { -if (is_ext_irq (irq)) -IER_REGS &= ~(1 << (irq -EXT_IRQ0 )); +if (is_ext_irq (data->irq)) +IER_REGS &= ~(1 << (data->irq -EXT_IRQ0 )); }static void h8300_end_irq (unsigned int irq) { } -static unsigned int h8300_startup_irq (unsigned int irq) +static unsigned int h8300_startup_irq (struct irq_data *data) { -if (is_ext_irq (irq)) -return h8300_enable_irq_pin (irq); +if (is_ext_irq (data->irq)) +return h8300_enable_irq_pin (data->irq);else return 0 ; } -static void h8300_shutdown_irq (unsigned int irq) +static void h8300_shutdown_irq (struct irq_data *data) { -if (is_ext_irq (irq)) -h8300_disable_irq_pin (irq); +if (is_ext_irq (data->irq)) +h8300_disable_irq_pin (data->irq); }/*
@@ -73,11 +73,10 @@ static void h8300_shutdown_irq(unsigned*/ struct irq_chip h8300irq_chip = { .name ="H8300-INTC" , - .startup = h8300_startup_irq, - .shutdown = h8300_shutdown_irq, - .enable = h8300_enable_irq, - .disable = h8300_disable_irq, - .ack =NULL , + .irq_startup = h8300_startup_irq, + .irq_shutdown = h8300_shutdown_irq, + .irq_enable = h8300_enable_irq, + .irq_disable = h8300_disable_irq, .end = h8300_end_irq, };
PATCH 2/37 h8300: Convert interrupt handling to flow handler
In reply to Thomas Gleixner__do_IRQ is deprecated so h8300 needs to be converted to proper flow handling. The irq chip is simple and does not required any mask/ack/eoi functions, so we can use handle_simple_irq.
--- arch/h8300/kernel/irq.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-)
arch/h8300/kernel/irq.c +3 -12
@@ -50,10 +50,6 @@ static void h8300_disable_irq(struct irqIER_REGS &= ~(1 << (data->irq -EXT_IRQ0 )); } -static void h8300_end_irq (unsigned int irq) -{ -} -static unsigned int h8300_startup_irq (struct irq_data *data) {if (is_ext_irq (data->irq))
@@ -77,7 +73,6 @@ struct irq_chip h8300irq_chip = { .irq_shutdown = h8300_shutdown_irq, .irq_enable = h8300_enable_irq, .irq_disable = h8300_disable_irq, - .end = h8300_end_irq, };#if defined(CONFIG_RAMKERNEL )
@@ -159,18 +154,14 @@ void __init init_IRQ(void)setup_vector (); -for (c =0 ; c <NR_IRQS ; c++) { - irq_desc[c].status =IRQ_DISABLED ; - irq_desc[c].action =NULL ; - irq_desc[c].depth =1 ; - irq_desc[c].chip = &h8300irq_chip; - } +for (c =0 ; c <NR_IRQS ; c++) +set_irq_chip_and_handler (c, &h8300irq_chip, handle_simple_irq); } asmlinkage void do_IRQ(int irq) {irq_enter (); -__do_IRQ (irq); +generic_handle_irq (irq);irq_exit (); }
PATCH 3/37 h8300: Use generic irq Kconfig
In reply to Thomas GleixnerSwitch to the generic irq Kconfig. h8300 has all irq chips converted to the new functions, so select the GENERIC_HARDIRQS_NO_DEPRECATED switch as well. Fixup the resulting fallout in show_interrupts().
--- arch/h8300/Kconfig | 6 ++---- arch/h8300/kernel/irq.c | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-)
arch/h8300/Kconfig +2 -4
@@ -2,6 +2,8 @@ config H8300 bool default y select HAVE_IDE + select HAVE_GENERIC_HARDIRQS + select GENERIC_HARDIRQS_NO_DEPRECATED config SYMBOL_PREFIX string
@@ -47,10 +49,6 @@ config GENERIC_HWEIGHT bool default y -config GENERIC_HARDIRQS - bool - default y - config GENERIC_CALIBRATE_DELAY bool default y
arch/h8300/kernel/irq.c +1 -1
@@ -182,7 +182,7 @@ int show_interrupts(struct seq_file *p, goto unlock;seq_printf (p,"%3d: " ,i);seq_printf (p,"%10u " ,kstat_irqs (i)); -seq_printf (p," %14s" , irq_desc[i].chip->name); +seq_printf (p," %14s" , irq_desc[i].irq_data.chip->name);seq_printf (p,"-%-8s" , irq_desc[i].name);seq_printf (p," %s" , action->name);
PATCH 4/37 cris: Use irq handling wrapper
In reply to Thomas GleixnerUse the wrapper around __do_IRQ() so we can convert V10 and V32 seperately.
--- arch/cris/kernel/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/cris/kernel/irq.c +2 -2
@@ -93,8 +93,8 @@ asmlinkage void do_IRQ(int irq, struct pprintk ("do_IRQ: stack overflow: %lX\n" , sp);show_stack (NULL , (unsigned long *)sp); } -__do_IRQ (irq); -irq_exit (); +generic_handle_irq (irq); +irq_exit ();set_irq_regs (old_regs); }
PATCH 5/37 cris: Convert V10 interrupt handling
In reply to Thomas GleixnerConvert the irq_chip functions and install handle_simple_irq for each interrupt. This converts V10 to the flow handling and lets us remove __do_IRQ().
--- arch/cris/arch-v10/kernel/irq.c | 41 +++++++++------------------------------- 1 file changed, 10 insertions(+), 31 deletions(-)
arch/cris/arch-v10/kernel/irq.c +10 -31
@@ -104,43 +104,21 @@ static void (*interrupt[NR_IRQS])(void) IRQ31_interrupt }; -static void enable_crisv10_irq (unsigned int irq); - -static unsigned int startup_crisv10_irq (unsigned int irq) -{ -enable_crisv10_irq (irq); -return 0 ; -} - -#define shutdown_crisv10_irq disable_crisv10_irq - -static void enable_crisv10_irq (unsigned int irq) -{ -crisv10_unmask_irq (irq); -} - -static void disable_crisv10_irq (unsigned int irq) -{ -crisv10_mask_irq (irq); -} - -static void ack_crisv10_irq (unsigned int irq) +static void enable_crisv10_irq (struct irq_data *data) { +crisv10_unmask_irq (data->irq); } -static void end_crisv10_irq (unsigned int irq) +static void disable_crisv10_irq (struct irq_data *data) { +crisv10_mask_irq (data->irq); }static struct irq_chip crisv10_irq_type = { - .name ="CRISv10" , - .startup = startup_crisv10_irq, - .shutdown = shutdown_crisv10_irq, - .enable = enable_crisv10_irq, - .disable = disable_crisv10_irq, - .ack = ack_crisv10_irq, - .end = end_crisv10_irq, - .set_affinity =NULL + .name ="CRISv10" , + .irq_shutdown = disable_crisv10_irq, + .irq_enable = enable_crisv10_irq, + .irq_disable = disable_crisv10_irq, };void weird_irq (void );
@@ -221,7 +199,8 @@ init_IRQ(void)/* Initialize IRQ handler descriptors. */ for (i =2 ; i <NR_IRQS ; i++) { - irq_desc[i].chip = &crisv10_irq_type; +set_irq_desc_and_handler (i, &crisv10_irq_type, + handle_simple_irq);set_int_vector (i, interrupt[i]); }
PATCH 6/37 cris: Convert V32 interrupt handling
In reply to Thomas GleixnerConvert the irq chip functions and install handle_simple_irq for each interrupt to get rid of __do_IRQ()
--- arch/cris/arch-v32/kernel/irq.c | 50 ++++++++++++---------------------------- 1 file changed, 15 insertions(+), 35 deletions(-)
arch/cris/arch-v32/kernel/irq.c +15 -35
@@ -291,54 +291,33 @@ void crisv32_unmask_irq(int irq) } -static unsigned int startup_crisv32_irq (unsigned int irq) +static void enable_crisv32_irq (struct irq_data *data) { -crisv32_unmask_irq (irq); -return 0 ; -} - -static void shutdown_crisv32_irq (unsigned int irq) -{ -crisv32_mask_irq (irq); +crisv32_unmask_irq (data->irq); } -static void enable_crisv32_irq (unsigned int irq) +static void disable_crisv32_irq (struct irq_data *data) { -crisv32_unmask_irq (irq); +crisv32_mask_irq (data->irq); } -static void disable_crisv32_irq (unsigned int irq) -{ -crisv32_mask_irq (irq); -} - -static void ack_crisv32_irq (unsigned int irq) -{ -} - -static void end_crisv32_irq (unsigned int irq) -{ -} - -int set_affinity_crisv32_irq (unsigned int irq,const struct cpumask *dest) +static int set_affinity_crisv32_irq (struct irq_data *data, +const struct cpumask *dest,bool force) {unsigned long flags; +spin_lock_irqsave (&irq_lock, flags); - irq_allocations[irq -FIRST_IRQ ].mask = *dest; + irq_allocations[data->irq -FIRST_IRQ ].mask = *dest;spin_unlock_irqrestore (&irq_lock, flags); -return 0 ; }static struct irq_chip crisv32_irq_type = { - .name ="CRISv32" , - .startup = startup_crisv32_irq, - .shutdown = shutdown_crisv32_irq, - .enable = enable_crisv32_irq, - .disable = disable_crisv32_irq, - .ack = ack_crisv32_irq, - .end = end_crisv32_irq, - .set_affinity = set_affinity_crisv32_irq + .name ="CRISv32" , + .irq_shutdown = disable_crisv32_irq, + .irq_enable = enable_crisv32_irq, + .irq_disable = disable_crisv32_irq, + .irq_set_affinity = set_affinity_crisv32_irq, };void
@@ -472,7 +451,8 @@ init_IRQ(void)/* Point all IRQ's to bad handlers. */ for (i =FIRST_IRQ , j =0 ; j <NR_IRQS ; i++, j++) { - irq_desc[j].chip = &crisv32_irq_type; +set_irq_chip_and_handler (j, &crisv32_irq_type, + handle_simple_irq);set_exception_vector (i, interrupt[j]); }
PATCH 7/37 cris: Use generic irq Kconfig
In reply to Thomas GleixnerUse the generic irq Kconfig. Select GENERIC_HARDIRQS_NO_DEPRECATED as we have converted all irq_chip functions. Fix the fallout in show_interrupts().
--- arch/cris/Kconfig | 6 ++---- arch/cris/kernel/irq.c | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-)
arch/cris/Kconfig +2 -4
@@ -54,6 +54,8 @@ config CRIS bool default y select HAVE_IDE + select HAVE_GENERIC_HARDIRQS + select GENERIC_HARDIRQS_NO_DEPRECATED config HZ int
@@ -67,10 +69,6 @@ menu "General setup" source "fs/Kconfig.binfmt" -config GENERIC_HARDIRQS - bool - default y - config ETRAX_CMDLINE string "Kernel command line" default "root=/dev/mtdblock3"
arch/cris/kernel/irq.c +1 -1
@@ -62,7 +62,7 @@ int show_interrupts(struct seq_file *p,for_each_online_cpu (j)seq_printf (p,"%10u " ,kstat_irqs_cpu (i, j));#endif -seq_printf (p," %14s" , irq_desc[i].chip->name); +seq_printf (p," %14s" , irq_desc[i].irq_data.chip->name);seq_printf (p," %s" , action->name);for (action=action->next; action; action = action->next)
PATCH 8/37 m32r: Cleanup direct irq_desc access
In reply to Thomas GleixnerThe irq descriptors are already initialized by the generic code. Remove the redundant init code and set the irq chip with the proper accessor function.
--- arch/m32r/kernel/irq.c | 10 ++-- arch/m32r/platforms/m32104ut/setup.c | 20 +-------- arch/m32r/platforms/m32700ut/setup.c | 74 +++++++---------------------------- arch/m32r/platforms/mappi/setup.c | 41 +++---------------- arch/m32r/platforms/mappi2/setup.c | 50 ++++------------------- arch/m32r/platforms/mappi3/setup.c | 50 ++++------------------- arch/m32r/platforms/oaks32r/setup.c | 30 ++------------ arch/m32r/platforms/opsput/setup.c | 70 ++++++--------------------------- arch/m32r/platforms/usrv/setup.c | 45 ++++----------------- 9 files changed, 83 insertions(+), 307 deletions(-)
arch/m32r/kernel/irq.c +6 -4
@@ -40,8 +40,10 @@ int show_interrupts(struct seq_file *p, }if (i <NR_IRQS ) { -raw_spin_lock_irqsave (&irq_desc[i].lock, flags); - action = irq_desc[i].action; +struct irq_desc *desc =irq_to_desc (i); + +raw_spin_lock_irqsave (&desc->lock, flags); + action = desc->action;if (!action) goto skip;seq_printf (p,"%3d: " ,i);
@@ -51,7 +53,7 @@ int show_interrupts(struct seq_file *p,for_each_online_cpu (j)seq_printf (p,"%10u " ,kstat_irqs_cpu (i, j));#endif -seq_printf (p," %14s" , irq_desc[i].chip->name); +seq_printf (p," %14s" , desc->irq_data.chip->name);seq_printf (p," %s" , action->name);for (action=action->next; action; action = action->next)
@@ -59,7 +61,7 @@ int show_interrupts(struct seq_file *p,seq_putc (p,'\n' ); skip: -raw_spin_unlock_irqrestore (&irq_desc[i].lock, flags); +raw_spin_unlock_irqrestore (&desc->lock, flags); }return 0 ; }
arch/m32r/platforms/m32104ut/setup.c +4 -16
@@ -85,36 +85,24 @@ void __init init_IRQ(void)#if defined(CONFIG_SMC91X )/* INT#0: LAN controller on M32104UT-LAN (SMC91C111)*/ - irq_desc[M32R_IRQ_INT0 ].status =IRQ_DISABLED ; - irq_desc[M32R_IRQ_INT0 ].chip = &m32104ut_irq_type; - irq_desc[M32R_IRQ_INT0 ].action =0 ; - irq_desc[M32R_IRQ_INT0 ].depth =1 ; +set_irq_chip (M32R_IRQ_INT0 , &m32104ut_irq_type); icu_data[M32R_IRQ_INT0 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD11 ;/* "H" level sense */ disable_m32104ut_irq (M32R_IRQ_INT0 );#endif /* CONFIG_SMC91X */ /* MFT2 : system timer */ - irq_desc[M32R_IRQ_MFT2 ].status =IRQ_DISABLED ; - irq_desc[M32R_IRQ_MFT2 ].chip = &m32104ut_irq_type; - irq_desc[M32R_IRQ_MFT2 ].action =0 ; - irq_desc[M32R_IRQ_MFT2 ].depth =1 ; +set_irq_chip (M32R_IRQ_MFT2 , &m32104ut_irq_type); icu_data[M32R_IRQ_MFT2 ].icucr =M32R_ICUCR_IEN ;disable_m32104ut_irq (M32R_IRQ_MFT2 );#ifdef CONFIG_SERIAL_M32R_SIO /* SIO0_R : uart receive data */ - irq_desc[M32R_IRQ_SIO0_R ].status =IRQ_DISABLED ; - irq_desc[M32R_IRQ_SIO0_R ].chip = &m32104ut_irq_type; - irq_desc[M32R_IRQ_SIO0_R ].action =0 ; - irq_desc[M32R_IRQ_SIO0_R ].depth =1 ; +set_irq_chip (M32R_IRQ_SIO0_R , &m32104ut_irq_type); icu_data[M32R_IRQ_SIO0_R ].icucr =M32R_ICUCR_IEN ;disable_m32104ut_irq (M32R_IRQ_SIO0_R );/* SIO0_S : uart send data */ - irq_desc[M32R_IRQ_SIO0_S ].status =IRQ_DISABLED ; - irq_desc[M32R_IRQ_SIO0_S ].chip = &m32104ut_irq_type; - irq_desc[M32R_IRQ_SIO0_S ].action =0 ; - irq_desc[M32R_IRQ_SIO0_S ].depth =1 ; +set_irq_chip (M32R_IRQ_SIO0_S , &m32104ut_irq_type); icu_data[M32R_IRQ_SIO0_S ].icucr =M32R_ICUCR_IEN ;disable_m32104ut_irq (M32R_IRQ_SIO0_S );#endif /* CONFIG_SERIAL_M32R_SIO */
arch/m32r/platforms/m32700ut/setup.c +16 -58
140 lines not on this page · raw message
arch/m32r/platforms/mappi/setup.c +8 -33
85 lines not on this page · raw message
arch/m32r/platforms/mappi2/setup.c +10 -40
97 lines not on this page · raw message
arch/m32r/platforms/mappi3/setup.c +10 -40
99 lines not on this page · raw message
arch/m32r/platforms/oaks32r/setup.c +6 -24
@@ -83,52 +83,34 @@ void __init init_IRQ(void)#ifdef CONFIG_NE2000 /* INT3 : LAN controller (RTL8019AS) */ - irq_desc[M32R_IRQ_INT3 ].status =IRQ_DISABLED ; - irq_desc[M32R_IRQ_INT3 ].chip = &oaks32r_irq_type; - irq_desc[M32R_IRQ_INT3 ].action =0 ; - irq_desc[M32R_IRQ_INT3 ].depth =1 ; +set_irq_chip (M32R_IRQ_INT3 , &oaks32r_irq_type); icu_data[M32R_IRQ_INT3 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD10 ;disable_oaks32r_irq (M32R_IRQ_INT3 );#endif /* CONFIG_M32R_NE2000 */ /* MFT2 : system timer */ - irq_desc[M32R_IRQ_MFT2 ].status =IRQ_DISABLED ; - irq_desc[M32R_IRQ_MFT2 ].chip = &oaks32r_irq_type; - irq_desc[M32R_IRQ_MFT2 ].action =0 ; - irq_desc[M32R_IRQ_MFT2 ].depth =1 ; +set_irq_chip (M32R_IRQ_MFT2 , &oaks32r_irq_type); icu_data[M32R_IRQ_MFT2 ].icucr =M32R_ICUCR_IEN ;disable_oaks32r_irq (M32R_IRQ_MFT2 );#ifdef CONFIG_SERIAL_M32R_SIO /* SIO0_R : uart receive data */ - irq_desc[M32R_IRQ_SIO0_R ].status =IRQ_DISABLED ; - irq_desc[M32R_IRQ_SIO0_R ].chip = &oaks32r_irq_type; - irq_desc[M32R_IRQ_SIO0_R ].action =0 ; - irq_desc[M32R_IRQ_SIO0_R ].depth =1 ; +set_irq_chip (M32R_IRQ_SIO0_R , &oaks32r_irq_type); icu_data[M32R_IRQ_SIO0_R ].icucr =0 ;disable_oaks32r_irq (M32R_IRQ_SIO0_R );/* SIO0_S : uart send data */ - irq_desc[M32R_IRQ_SIO0_S ].status =IRQ_DISABLED ; - irq_desc[M32R_IRQ_SIO0_S ].chip = &oaks32r_irq_type; - irq_desc[M32R_IRQ_SIO0_S ].action =0 ; - irq_desc[M32R_IRQ_SIO0_S ].depth =1 ; +set_irq_chip (M32R_IRQ_SIO0_S , &oaks32r_irq_type); icu_data[M32R_IRQ_SIO0_S ].icucr =0 ;disable_oaks32r_irq (M32R_IRQ_SIO0_S );/* SIO1_R : uart receive data */ - irq_desc[M32R_IRQ_SIO1_R ].status =IRQ_DISABLED ; - irq_desc[M32R_IRQ_SIO1_R ].chip = &oaks32r_irq_type; - irq_desc[M32R_IRQ_SIO1_R ].action =0 ; - irq_desc[M32R_IRQ_SIO1_R ].depth =1 ; +set_irq_chip (M32R_IRQ_SIO1_R , &oaks32r_irq_type); icu_data[M32R_IRQ_SIO1_R ].icucr =0 ;disable_oaks32r_irq (M32R_IRQ_SIO1_R );/* SIO1_S : uart send data */ - irq_desc[M32R_IRQ_SIO1_S ].status =IRQ_DISABLED ; - irq_desc[M32R_IRQ_SIO1_S ].chip = &oaks32r_irq_type; - irq_desc[M32R_IRQ_SIO1_S ].action =0 ; - irq_desc[M32R_IRQ_SIO1_S ].depth =1 ; +set_irq_chip (M32R_IRQ_SIO1_S , &oaks32r_irq_type); icu_data[M32R_IRQ_SIO1_S ].icucr =0 ;disable_oaks32r_irq (M32R_IRQ_SIO1_S );#endif /* CONFIG_SERIAL_M32R_SIO */
arch/m32r/platforms/opsput/setup.c +14 -56
135 lines not on this page · raw message
arch/m32r/platforms/usrv/setup.c +9 -36
91 lines not on this page · raw message
PATCH 9/37 m32r: Convert m32104ut irq handling
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/m32104ut/setup.c | 46 +++++++++++++++-------------------- 1 file changed, 21 insertions(+), 25 deletions(-)
arch/m32r/platforms/m32104ut/setup.c +21 -25
@@ -39,39 +39,30 @@ static void enable_m32104ut_irq(unsignedoutl (data, port); } -static void mask_and_ack_m32104ut (unsigned int irq) +static void mask_m32104ut_irq (struct irq_data *data) { -disable_m32104ut_irq (irq); +disable_m32104ut_irq (data->irq); } -static void end_m32104ut_irq (unsigned int irq) +static void unmask_m32104ut_irq (struct irq_data *data) { -enable_m32104ut_irq (irq); +enable_m32104ut_irq (data->irq); } -static unsigned int startup_m32104ut_irq (unsigned int irq) +static void shutdown_m32104ut_irq (struct irq_data *data) { -enable_m32104ut_irq (irq); -return (0 ); -} - -static void shutdown_m32104ut_irq (unsigned int irq) -{ -unsigned long port; +unsigned int irq = data->irq; +unsigned long port =irq2port (irq); - port =irq2port (irq);outl (M32R_ICUCR_ILEVEL7 , port); }static struct irq_chip m32104ut_irq_type = { - .name ="M32104UT-IRQ" , - .startup = startup_m32104ut_irq, - .shutdown = shutdown_m32104ut_irq, - .enable = enable_m32104ut_irq, - .disable = disable_m32104ut_irq, - .ack = mask_and_ack_m32104ut, - .end = end_m32104ut_irq + .name ="M32104UT-IRQ" , + .irq_shutdown = shutdown_m32104ut_irq, + .irq_unmask = unmask_m32104ut_irq, + .irq_mask = mask_m32104ut_irq, };void __init init_IRQ (void )
@@ -85,24 +76,29 @@ void __init init_IRQ(void)#if defined(CONFIG_SMC91X )/* INT#0: LAN controller on M32104UT-LAN (SMC91C111)*/ -set_irq_chip (M32R_IRQ_INT0 , &m32104ut_irq_type); - icu_data[M32R_IRQ_INT0 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD11 ;/* "H" level sense */ +set_irq_chip_and_handler (M32R_IRQ_INT0 , &m32104ut_irq_type, + handle_level_irq); +/* "H" level sense */ + cu_data[M32R_IRQ_INT0 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD11 ;disable_m32104ut_irq (M32R_IRQ_INT0 );#endif /* CONFIG_SMC91X */ /* MFT2 : system timer */ -set_irq_chip (M32R_IRQ_MFT2 , &m32104ut_irq_type); +set_irq_chip_and_handler (M32R_IRQ_MFT2 , &m32104ut_irq_type, + handle_level_irq); icu_data[M32R_IRQ_MFT2 ].icucr =M32R_ICUCR_IEN ;disable_m32104ut_irq (M32R_IRQ_MFT2 );#ifdef CONFIG_SERIAL_M32R_SIO /* SIO0_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO0_R , &m32104ut_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_R , &m32104ut_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_R ].icucr =M32R_ICUCR_IEN ;disable_m32104ut_irq (M32R_IRQ_SIO0_R );/* SIO0_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO0_S , &m32104ut_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_S , &m32104ut_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_S ].icucr =M32R_ICUCR_IEN ;disable_m32104ut_irq (M32R_IRQ_SIO0_S );#endif /* CONFIG_SERIAL_M32R_SIO */
PATCH 10/37 m32r: Convert m32104ut irq chip
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/m32700ut/setup.c | 56 ++++++++++++++++------------------- 1 file changed, 27 insertions(+), 29 deletions(-)
arch/m32r/platforms/m32700ut/setup.c +27 -29
@@ -45,39 +45,30 @@ static void enable_m32700ut_irq(unsignedoutl (data, port); } -static void mask_and_ack_m32700ut (unsigned int irq) +static void mask_m32700ut (struct irq_data *data) { -disable_m32700ut_irq (irq); +disable_m32700ut_irq (data->irq); } -static void end_m32700ut_irq (unsigned int irq) +static void unmask_m32700ut (struct irq_data *data) { -enable_m32700ut_irq (irq); +enable_m32700ut_irq (data->irq); } -static unsigned int startup_m32700ut_irq (unsigned int irq) -{ -enable_m32700ut_irq (irq); -return (0 ); -} - -static void shutdown_m32700ut_irq (unsigned int irq) +static void shutdown_m32700ut (struct irq_data *data) {unsigned long port; - port =irq2port (irq); + port =irq2port (data->irq);outl (M32R_ICUCR_ILEVEL7 , port); }static struct irq_chip m32700ut_irq_type = { - .name ="M32700UT-IRQ" , - .startup = startup_m32700ut_irq, - .shutdown = shutdown_m32700ut_irq, - .enable = enable_m32700ut_irq, - .disable = disable_m32700ut_irq, - .ack = mask_and_ack_m32700ut, - .end = end_m32700ut_irq + .name ="M32700UT-IRQ" , + .irq_shutdown = shutdown_m32700ut, + .irq_mask = mask_m32700ut, + .irq_unmask = unmask_m32700ut };/*
@@ -126,7 +117,7 @@ static void mask_and_ack_m32700ut_pld(unstatic void end_m32700ut_pld_irq (unsigned int irq) {enable_m32700ut_pld_irq (irq); -end_m32700ut_irq (M32R_IRQ_INT1 ); +enable_m32700ut_irq (M32R_IRQ_INT1 ); }static unsigned int startup_m32700ut_pld_irq (unsigned int irq)
@@ -196,7 +187,7 @@ static void mask_and_ack_m32700ut_lanpldstatic void end_m32700ut_lanpld_irq (unsigned int irq) {enable_m32700ut_lanpld_irq (irq); -end_m32700ut_irq (M32R_IRQ_INT0 ); +enable_m32700ut_irq (M32R_IRQ_INT0 ); }static unsigned int startup_m32700ut_lanpld_irq (unsigned int irq)
@@ -265,7 +256,7 @@ static void mask_and_ack_m32700ut_lcdpldstatic void end_m32700ut_lcdpld_irq (unsigned int irq) {enable_m32700ut_lcdpld_irq (irq); -end_m32700ut_irq (M32R_IRQ_INT2 ); +enable_m32700ut_irq (M32R_IRQ_INT2 ); }static unsigned int startup_m32700ut_lcdpld_irq (unsigned int irq)
@@ -305,32 +296,38 @@ void __init init_IRQ(void)#endif /* CONFIG_SMC91X */ /* MFT2 : system timer */ -set_irq_chip (M32R_IRQ_MFT2 , &m32700ut_irq_type); +set_irq_chip_and_handler (M32R_IRQ_MFT2 , &m32700ut_irq_type, + handle_level_irq); icu_data[M32R_IRQ_MFT2 ].icucr =M32R_ICUCR_IEN ;disable_m32700ut_irq (M32R_IRQ_MFT2 );/* SIO0 : receive */ -set_irq_chip (M32R_IRQ_SIO0_R , &m32700ut_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_R , &m32700ut_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_R ].icucr =0 ;disable_m32700ut_irq (M32R_IRQ_SIO0_R );/* SIO0 : send */ -set_irq_chip (M32R_IRQ_SIO0_S , &m32700ut_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_S , &m32700ut_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_S ].icucr =0 ;disable_m32700ut_irq (M32R_IRQ_SIO0_S );/* SIO1 : receive */ -set_irq_chip (M32R_IRQ_SIO1_R , &m32700ut_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_R , &m32700ut_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_R ].icucr =0 ;disable_m32700ut_irq (M32R_IRQ_SIO1_R );/* SIO1 : send */ -set_irq_chip (M32R_IRQ_SIO1_S , &m32700ut_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_S , &m32700ut_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_S ].icucr =0 ;disable_m32700ut_irq (M32R_IRQ_SIO1_S );/* DMA1 : */ -set_irq_chip (M32R_IRQ_DMA1 , &m32700ut_irq_type); +set_irq_chip_and_handler (M32R_IRQ_DMA1 , &m32700ut_irq_type, + handle_level_irq); icu_data[M32R_IRQ_DMA1 ].icucr =0 ;disable_m32700ut_irq (M32R_IRQ_DMA1 );
@@ -393,7 +390,8 @@ void __init init_IRQ(void)/* * INT3# is used for AR */ -set_irq_chip (M32R_IRQ_INT3 , &m32700ut_irq_type); +set_irq_chip_and_handler (M32R_IRQ_INT3 , &m32700ut_irq_type, + handle_level_irq); icu_data[M32R_IRQ_INT3 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD10 ;disable_m32700ut_irq (M32R_IRQ_INT3 );#endif /* CONFIG_VIDEO_M32R_AR */
PATCH 11/37 m32r: Convert m32700ut pld irq chip
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/m32700ut/setup.c | 48 ++++++++++++++--------------------- 1 file changed, 20 insertions(+), 28 deletions(-)
arch/m32r/platforms/m32700ut/setup.c +20 -28
@@ -90,7 +90,6 @@ static void disable_m32700ut_pld_irq(unsunsigned int pldirq; pldirq =irq2pldirq (irq); -// disable_m32700ut_irq(M32R_IRQ_INT1); port =pldirq2port (pldirq); data = pld_icu_data[pldirq].icucr|PLD_ICUCR_ILEVEL7 ;outw (data, port);
@@ -102,50 +101,38 @@ static void enable_m32700ut_pld_irq(unsiunsigned int pldirq; pldirq =irq2pldirq (irq); -// enable_m32700ut_irq(M32R_IRQ_INT1); port =pldirq2port (pldirq); data = pld_icu_data[pldirq].icucr|PLD_ICUCR_IEN |PLD_ICUCR_ILEVEL6 ;outw (data, port); } -static void mask_and_ack_m32700ut_pld (unsigned int irq) +static void mask_m32700ut_pld (struct irq_data *data) { -disable_m32700ut_pld_irq (irq); -// mask_and_ack_m32700ut(M32R_IRQ_INT1); +disable_m32700ut_pld_irq (data->irq); } -static void end_m32700ut_pld_irq (unsigned int irq) +static void unmask_m32700ut_pld (struct irq_data *data) { -enable_m32700ut_pld_irq (irq); +enable_m32700ut_pld_irq (data->irq);enable_m32700ut_irq (M32R_IRQ_INT1 ); } -static unsigned int startup_m32700ut_pld_irq (unsigned int irq) -{ -enable_m32700ut_pld_irq (irq); -return (0 ); -} - -static void shutdown_m32700ut_pld_irq (unsigned int irq) +static void shutdown_m32700ut_pld_irq (struct irq_data *data) {unsigned long port;unsigned int pldirq; - pldirq =irq2pldirq (irq); -// shutdown_m32700ut_irq(M32R_IRQ_INT1); + pldirq =irq2pldirq (data->irq); port =pldirq2port (pldirq);outw (PLD_ICUCR_ILEVEL7 , port); }static struct irq_chip m32700ut_pld_irq_type = { - .name ="M32700UT-PLD-IRQ" , - .startup = startup_m32700ut_pld_irq, - .shutdown = shutdown_m32700ut_pld_irq, - .enable = enable_m32700ut_pld_irq, - .disable = disable_m32700ut_pld_irq, - .ack = mask_and_ack_m32700ut_pld, - .end = end_m32700ut_pld_irq + .name ="M32700UT-PLD-IRQ" , + .irq_shutdown = shutdown_m32700ut_pld_irq, + .irq_mask = mask_m32700ut_pld, + .irq_unmask = unmask_m32700ut_pld, };/*
@@ -333,28 +320,33 @@ void __init init_IRQ(void)#ifdef CONFIG_SERIAL_M32R_PLDSIO /* INT#1: SIO0 Receive on PLD */ -set_irq_chip (PLD_IRQ_SIO0_RCV , &m32700ut_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_SIO0_RCV , &m32700ut_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_SIO0_RCV )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD03 ;disable_m32700ut_pld_irq (PLD_IRQ_SIO0_RCV );/* INT#1: SIO0 Send on PLD */ -set_irq_chip (PLD_IRQ_SIO0_SND , &m32700ut_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_SIO0_SND , &m32700ut_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_SIO0_SND )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD03 ;disable_m32700ut_pld_irq (PLD_IRQ_SIO0_SND );#endif /* CONFIG_SERIAL_M32R_PLDSIO */ /* INT#1: CFC IREQ on PLD */ -set_irq_chip (PLD_IRQ_CFIREQ , &m32700ut_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFIREQ , &m32700ut_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_CFIREQ )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD01 ;/* 'L' level sense */ disable_m32700ut_pld_irq (PLD_IRQ_CFIREQ );/* INT#1: CFC Insert on PLD */ -set_irq_chip (PLD_IRQ_CFC_INSERT , &m32700ut_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFC_INSERT , &m32700ut_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_CFC_INSERT )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD00 ;/* 'L' edge sense */ disable_m32700ut_pld_irq (PLD_IRQ_CFC_INSERT );/* INT#1: CFC Eject on PLD */ -set_irq_chip (PLD_IRQ_CFC_EJECT , &m32700ut_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFC_EJECT , &m32700ut_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_CFC_EJECT )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD02 ;/* 'H' edge sense */ disable_m32700ut_pld_irq (PLD_IRQ_CFC_EJECT );
PATCH 12/37 m32r: Convert m32700ut lanpld irq chip
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/m32700ut/setup.c | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-)
arch/m32r/platforms/m32700ut/setup.c +12 -20
@@ -166,42 +166,33 @@ static void enable_m32700ut_lanpld_irq(uoutw (data, port); } -static void mask_and_ack_m32700ut_lanpld (unsigned int irq) +static void mask_m32700ut_lanpld (struct irq_data *data) { -disable_m32700ut_lanpld_irq (irq); +disable_m32700ut_lanpld_irq (data->irq); } -static void end_m32700ut_lanpld_irq (unsigned int irq) +static void unmask_m32700ut_lanpld (struct irq_data *data) { -enable_m32700ut_lanpld_irq (irq); +enable_m32700ut_lanpld_irq (data->irq);enable_m32700ut_irq (M32R_IRQ_INT0 ); } -static unsigned int startup_m32700ut_lanpld_irq (unsigned int irq) -{ -enable_m32700ut_lanpld_irq (irq); -return (0 ); -} - -static void shutdown_m32700ut_lanpld_irq (unsigned int irq) +static void shutdown_m32700ut_lanpld (struct irq_data *data) {unsigned long port;unsigned int pldirq; - pldirq =irq2lanpldirq (irq); + pldirq =irq2lanpldirq (data->irq); port =lanpldirq2port (pldirq);outw (PLD_ICUCR_ILEVEL7 , port); }static struct irq_chip m32700ut_lanpld_irq_type = { - .name ="M32700UT-PLD-LAN-IRQ" , - .startup = startup_m32700ut_lanpld_irq, - .shutdown = shutdown_m32700ut_lanpld_irq, - .enable = enable_m32700ut_lanpld_irq, - .disable = disable_m32700ut_lanpld_irq, - .ack = mask_and_ack_m32700ut_lanpld, - .end = end_m32700ut_lanpld_irq + .name ="M32700UT-PLD-LAN-IRQ" , + .irq_shutdown = shutdown_m32700ut_lanpld, + .irq_mask = mask_m32700ut_lanpld, + .irq_unmask = unmask_m32700ut_lanpld, };/*
@@ -277,7 +268,8 @@ void __init init_IRQ(void) {#if defined(CONFIG_SMC91X )/* INT#0: LAN controller on M32700UT-LAN (SMC91C111)*/ -set_irq_chip (M32700UT_LAN_IRQ_LAN , &m32700ut_lanpld_irq_type); +set_irq_chip_and_handler (M32700UT_LAN_IRQ_LAN , + &m32700ut_lanpld_irq_type, handle_level_irq); lanpld_icu_data[irq2lanpldirq (M32700UT_LAN_IRQ_LAN )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD02 ;/* "H" edge sense */ disable_m32700ut_lanpld_irq (M32700UT_LAN_IRQ_LAN );#endif /* CONFIG_SMC91X */
PATCH 13/37 m32r: Convert m32700ut lcdpld irq chip
In reply to Thomas GleixnerConvert the irq chip to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/m32700ut/setup.c | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-)
arch/m32r/platforms/m32700ut/setup.c +12 -20
@@ -226,42 +226,33 @@ static void enable_m32700ut_lcdpld_irq(uoutw (data, port); } -static void mask_and_ack_m32700ut_lcdpld (unsigned int irq) +static void mask_m32700ut_lcdpld (struct irq_data *data) { -disable_m32700ut_lcdpld_irq (irq); +disable_m32700ut_lcdpld_irq (data->irq); } -static void end_m32700ut_lcdpld_irq (unsigned int irq) +static void unmask_m32700ut_lcdpld (struct irq_data *data) { -enable_m32700ut_lcdpld_irq (irq); +enable_m32700ut_lcdpld_irq (data->irq);enable_m32700ut_irq (M32R_IRQ_INT2 ); } -static unsigned int startup_m32700ut_lcdpld_irq (unsigned int irq) -{ -enable_m32700ut_lcdpld_irq (irq); -return (0 ); -} - -static void shutdown_m32700ut_lcdpld_irq (unsigned int irq) +static void shutdown_m32700ut_lcdpld (struct irq_data *data) {unsigned long port;unsigned int pldirq; - pldirq =irq2lcdpldirq (irq); + pldirq =irq2lcdpldirq (data->irq); port =lcdpldirq2port (pldirq);outw (PLD_ICUCR_ILEVEL7 , port); }static struct irq_chip m32700ut_lcdpld_irq_type = { - .name ="M32700UT-PLD-LCD-IRQ" , - .startup = startup_m32700ut_lcdpld_irq, - .shutdown = shutdown_m32700ut_lcdpld_irq, - .enable = enable_m32700ut_lcdpld_irq, - .disable = disable_m32700ut_lcdpld_irq, - .ack = mask_and_ack_m32700ut_lcdpld, - .end = end_m32700ut_lcdpld_irq + .name ="M32700UT-PLD-LCD-IRQ" , + .irq_shutdown = shutdown_m32700ut_lcdpld, + .irq_mask = mask_m32700ut_lcdpld, + .irq_unmask = unmask_m32700ut_lcdpld, };void __init init_IRQ (void )
@@ -358,7 +349,8 @@ void __init init_IRQ(void)#if defined(CONFIG_USB )outw (USBCR_OTGS ,USBCR );/* USBCR: non-OTG */ -set_irq_chip (M32700UT_LCD_IRQ_USB_INT1 , &m32700ut_lcdpld_irq_type); +set_irq_chip_and_handler (M32700UT_LCD_IRQ_USB_INT1 , + &m32700ut_lcdpld_irq_type, handle_level_irq); lcdpld_icu_data[irq2lcdpldirq (M32700UT_LCD_IRQ_USB_INT1 )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD01 ;/* "L" level sense */ disable_m32700ut_lcdpld_irq (M32700UT_LCD_IRQ_USB_INT1 );
PATCH 14/37 m32r: Convert mappi irq chips
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/mappi/setup.c | 53 ++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 27 deletions(-)
arch/m32r/platforms/mappi/setup.c +26 -27
@@ -38,39 +38,30 @@ static void enable_mappi_irq(unsigned inoutl (data, port); } -static void mask_and_ack_mappi (unsigned int irq) +static void mask_mappi (struct irq_data *data) { -disable_mappi_irq (irq); +disable_mappi_irq (data->irq); } -static void end_mappi_irq (unsigned int irq) +static void unmask_mappi (struct irq_data *data) { -enable_mappi_irq (irq); +enable_mappi_irq (data->irq); } -static unsigned int startup_mappi_irq (unsigned int irq) -{ -enable_mappi_irq (irq); -return (0 ); -} - -static void shutdown_mappi_irq (unsigned int irq) +static void shutdown_mappi (struct irq_data *data) {unsigned long port; - port =irq2port (irq); + port =irq2port (data->irq);outl (M32R_ICUCR_ILEVEL7 , port); }static struct irq_chip mappi_irq_type = { - .name ="MAPPI-IRQ" , - .startup = startup_mappi_irq, - .shutdown = shutdown_mappi_irq, - .enable = enable_mappi_irq, - .disable = disable_mappi_irq, - .ack = mask_and_ack_mappi, - .end = end_mappi_irq + .name ="MAPPI-IRQ" , + .irq_shutdown = shutdown_mappi, + .irq_mask = mask_mappi, + .irq_unmask = unmask_mappi, };void __init init_IRQ (void )
@@ -84,46 +75,54 @@ void __init init_IRQ(void)#ifdef CONFIG_NE2000 /* INT0 : LAN controller (RTL8019AS) */ -set_irq_chip (M32R_IRQ_INT0 , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_INT0 , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_INT0 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD11 ;disable_mappi_irq (M32R_IRQ_INT0 );#endif /* CONFIG_M32R_NE2000 */ /* MFT2 : system timer */ -set_irq_chip (M32R_IRQ_MFT2 , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_MFT2 , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_MFT2 ].icucr =M32R_ICUCR_IEN ;disable_mappi_irq (M32R_IRQ_MFT2 );#ifdef CONFIG_SERIAL_M32R_SIO /* SIO0_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO0_R , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_R , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_R ].icucr =0 ;disable_mappi_irq (M32R_IRQ_SIO0_R );/* SIO0_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO0_S , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_S , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_S ].icucr =0 ;disable_mappi_irq (M32R_IRQ_SIO0_S );/* SIO1_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO1_R , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_R , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_R ].icucr =0 ;disable_mappi_irq (M32R_IRQ_SIO1_R );/* SIO1_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO1_S , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_S , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_S ].icucr =0 ;disable_mappi_irq (M32R_IRQ_SIO1_S );#endif /* CONFIG_SERIAL_M32R_SIO */ #if defined(CONFIG_M32R_PCC )/* INT1 : pccard0 interrupt */ -set_irq_chip (M32R_IRQ_INT1 , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_INT1 , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_INT1 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD00 ;disable_mappi_irq (M32R_IRQ_INT1 );/* INT2 : pccard1 interrupt */ -set_irq_chip (M32R_IRQ_INT2 , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_INT2 , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_INT2 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD00 ;disable_mappi_irq (M32R_IRQ_INT2 );#endif /* CONFIG_M32RPCC */
PATCH 15/37 m32r: Convert mappi2 irq chip
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
---
--- arch/m32r/platforms/mappi2/setup.c | 59 ++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 29 deletions(-)
arch/m32r/platforms/mappi2/setup.c +30 -29
@@ -46,96 +46,97 @@ static void enable_mappi2_irq(unsigned ioutl (data, port); } -static void mask_and_ack_mappi2 (unsigned int irq) +static void mask_mappi2 (struct irq_data *data) { -disable_mappi2_irq (irq); +disable_mappi2_irq (data->irq); } -static void end_mappi2_irq (unsigned int irq) +static void unmask_mappi2 (struct irq_data *data) { -enable_mappi2_irq (irq); +enable_mappi2_irq (data->irq); } -static unsigned int startup_mappi2_irq (unsigned int irq) -{ -enable_mappi2_irq (irq); -return (0 ); -} - -static void shutdown_mappi2_irq (unsigned int irq) +static void shutdown_mappi2 (struct irq_data *data) {unsigned long port; - port =irq2port (irq); + port =irq2port (data->irq);outl (M32R_ICUCR_ILEVEL7 , port); }static struct irq_chip mappi2_irq_type = { - .name ="MAPPI2-IRQ" , - .startup = startup_mappi2_irq, - .shutdown = shutdown_mappi2_irq, - .enable = enable_mappi2_irq, - .disable = disable_mappi2_irq, - .ack = mask_and_ack_mappi2, - .end = end_mappi2_irq + .name ="MAPPI2-IRQ" , + .irq_shutdown = shutdown_mappi2, + .irq_mask = mask_mappi2, + .irq_unmask = unmask_mappi2, };void __init init_IRQ (void ) {#if defined(CONFIG_SMC91X )/* INT0 : LAN controller (SMC91111) */ -set_irq_chip (M32R_IRQ_INT0 , &mappi2_irq_type); +set_irq_chip_and_handler (M32R_IRQ_INT0 , &mappi2_irq_type, + handle_level_irq); icu_data[M32R_IRQ_INT0 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD10 ;disable_mappi2_irq (M32R_IRQ_INT0 );#endif /* CONFIG_SMC91X */ /* MFT2 : system timer */ -set_irq_chip (M32R_IRQ_MFT2 , &mappi2_irq_type); +set_irq_chip_and_handler (M32R_IRQ_MFT2 , &mappi2_irq_type, + handle_level_irq); icu_data[M32R_IRQ_MFT2 ].icucr =M32R_ICUCR_IEN ;disable_mappi2_irq (M32R_IRQ_MFT2 );#ifdef CONFIG_SERIAL_M32R_SIO /* SIO0_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO0_R , &mappi2_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_R , &mappi2_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_R ].icucr =0 ;disable_mappi2_irq (M32R_IRQ_SIO0_R );/* SIO0_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO0_S , &mappi2_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_S , &mappi2_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_S ].icucr =0 ;disable_mappi2_irq (M32R_IRQ_SIO0_S );/* SIO1_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO1_R , &mappi2_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_R , &mappi2_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_R ].icucr =0 ;disable_mappi2_irq (M32R_IRQ_SIO1_R );/* SIO1_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO1_S , &mappi2_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_S , &mappi2_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_S ].icucr =0 ;disable_mappi2_irq (M32R_IRQ_SIO1_S );#endif /* CONFIG_M32R_USE_DBG_CONSOLE */ #if defined(CONFIG_USB )/* INT1 : USB Host controller interrupt */ -set_irq_chip (M32R_IRQ_INT1 , &mappi2_irq_type); +set_irq_chip_and_handler (M32R_IRQ_INT1 , &mappi2_irq_type, + handle_level_irq); icu_data[M32R_IRQ_INT1 ].icucr =M32R_ICUCR_ISMOD01 ;disable_mappi2_irq (M32R_IRQ_INT1 );#endif /* CONFIG_USB */ /* ICUCR40: CFC IREQ */ -set_irq_chip (PLD_IRQ_CFIREQ , &mappi2_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFIREQ , &mappi2_irq_type, + handle_level_irq); icu_data[PLD_IRQ_CFIREQ ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD01 ;disable_mappi2_irq (PLD_IRQ_CFIREQ );#if defined(CONFIG_M32R_CFC )/* ICUCR41: CFC Insert */ -set_irq_chip (PLD_IRQ_CFC_INSERT , &mappi2_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFC_INSERT , &mappi2_irq_type, + handle_level_irq); icu_data[PLD_IRQ_CFC_INSERT ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD00 ;disable_mappi2_irq (PLD_IRQ_CFC_INSERT );/* ICUCR42: CFC Eject */ -set_irq_chip (PLD_IRQ_CFC_EJECT , &mappi2_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFC_EJECT , &mappi2_irq_type, + handle_level_irq); icu_data[PLD_IRQ_CFC_EJECT ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD10 ;disable_mappi2_irq (PLD_IRQ_CFC_EJECT );#endif /* CONFIG_MAPPI2_CFC */
PATCH 16/37 m32r: Convert mappi3 irq chip
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/mappi3/setup.c | 62 ++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 31 deletions(-)
arch/m32r/platforms/mappi3/setup.c +31 -31
@@ -46,98 +46,98 @@ static void enable_mappi3_irq(unsigned ioutl (data, port); } -static void mask_and_ack_mappi3 (unsigned int irq) +static void mask_mappi3 (struct irq_data *data) { -disable_mappi3_irq (irq); +disable_mappi3_irq (data->irq); } -static void end_mappi3_irq (unsigned int irq) +static void unmask_mappi3 (struct irq_data *data) { -enable_mappi3_irq (irq); +enable_mappi3_irq (data->irq); } -static unsigned int startup_mappi3_irq (unsigned int irq) -{ -enable_mappi3_irq (irq); -return (0 ); -} - -static void shutdown_mappi3_irq (unsigned int irq) +static void shutdown_mappi3 (struct irq_data *data) {unsigned long port; - port =irq2port (irq); + port =irq2port (data->irq);outl (M32R_ICUCR_ILEVEL7 , port); } -static struct irq_chip mappi3_irq_type = -{ - .name ="MAPPI3-IRQ" , - .startup = startup_mappi3_irq, - .shutdown = shutdown_mappi3_irq, - .enable = enable_mappi3_irq, - .disable = disable_mappi3_irq, - .ack = mask_and_ack_mappi3, - .end = end_mappi3_irq +static struct irq_chip mappi3_irq_type = { + .name ="MAPPI3-IRQ" , + .irq_shutdown = shutdown_mappi3, + .irq_mask = mask_mappi3, + .irq_unmask = unmask_mappi3, };void __init init_IRQ (void ) {#if defined(CONFIG_SMC91X )/* INT0 : LAN controller (SMC91111) */ -set_irq_chip (M32R_IRQ_INT0 , &mappi3_irq_type); +set_irq_chip_and_handler (M32R_IRQ_INT0 , &mappi3_irq_type, + handle_level_irq); icu_data[M32R_IRQ_INT0 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD10 ;disable_mappi3_irq (M32R_IRQ_INT0 );#endif /* CONFIG_SMC91X */ /* MFT2 : system timer */ -set_irq_chip (M32R_IRQ_MFT2 , &mappi3_irq_type); +set_irq_chip_and_handler (M32R_IRQ_MFT2 , &mappi3_irq_type, + handle_level_irq); icu_data[M32R_IRQ_MFT2 ].icucr =M32R_ICUCR_IEN ;disable_mappi3_irq (M32R_IRQ_MFT2 );#ifdef CONFIG_SERIAL_M32R_SIO /* SIO0_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO0_R , &mappi3_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_R , &mappi3_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_R ].icucr =0 ;disable_mappi3_irq (M32R_IRQ_SIO0_R );/* SIO0_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO0_S , &mappi3_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_S , &mappi3_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_S ].icucr =0 ;disable_mappi3_irq (M32R_IRQ_SIO0_S );/* SIO1_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO1_R , &mappi3_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_R , &mappi3_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_R ].icucr =0 ;disable_mappi3_irq (M32R_IRQ_SIO1_R );/* SIO1_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO1_S , &mappi3_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_S , &mappi3_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_S ].icucr =0 ;disable_mappi3_irq (M32R_IRQ_SIO1_S );#endif /* CONFIG_M32R_USE_DBG_CONSOLE */ #if defined(CONFIG_USB )/* INT1 : USB Host controller interrupt */ -set_irq_chip (M32R_IRQ_INT1 , &mappi3_irq_type); +set_irq_chip_and_handler (M32R_IRQ_INT1 , &mappi3_irq_type, + handle_level_irq); icu_data[M32R_IRQ_INT1 ].icucr =M32R_ICUCR_ISMOD01 ;disable_mappi3_irq (M32R_IRQ_INT1 );#endif /* CONFIG_USB */ /* CFC IREQ */ -set_irq_chip (PLD_IRQ_CFIREQ , &mappi3_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFIREQ , &mappi3_irq_type, + handle_level_irq); icu_data[PLD_IRQ_CFIREQ ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD01 ;disable_mappi3_irq (PLD_IRQ_CFIREQ );#if defined(CONFIG_M32R_CFC )/* ICUCR41: CFC Insert & eject */ -set_irq_chip (PLD_IRQ_CFC_INSERT , &mappi3_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFC_INSERT , &mappi3_irq_type, + handle_level_irq); icu_data[PLD_IRQ_CFC_INSERT ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD00 ;disable_mappi3_irq (PLD_IRQ_CFC_INSERT );#endif /* CONFIG_M32R_CFC */ /* IDE IREQ */ -set_irq_chip (PLD_IRQ_IDEIREQ , &mappi3_irq_type); +set_irq_chip_and_handler (PLD_IRQ_IDEIREQ , &mappi3_irq_type, + handle_level_irq); icu_data[PLD_IRQ_IDEIREQ ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD10 ;disable_mappi3_irq (PLD_IRQ_IDEIREQ );
PATCH 17/37 m32r: Convert oaks32r irq chips
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/oaks32r/setup.c | 47 ++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 25 deletions(-)
arch/m32r/platforms/oaks32r/setup.c +22 -25
@@ -37,39 +37,30 @@ static void enable_oaks32r_irq(unsignedoutl (data, port); } -static void mask_and_ack_mappi (unsigned int irq) +static void mask_oaks32r (struct irq_data *data) { -disable_oaks32r_irq (irq); +disable_oaks32r_irq (data->irq); } -static void end_oaks32r_irq (unsigned int irq) +static void unmask_oaks32r (struct irq_data *data) { -enable_oaks32r_irq (irq); +enable_oaks32r_irq (data->irq); } -static unsigned int startup_oaks32r_irq (unsigned int irq) -{ -enable_oaks32r_irq (irq); -return (0 ); -} - -static void shutdown_oaks32r_irq (unsigned int irq) +static void shutdown_oaks32r (struct irq_data *data) {unsigned long port; - port =irq2port (irq); + port =irq2port (data->irq);outl (M32R_ICUCR_ILEVEL7 , port); }static struct irq_chip oaks32r_irq_type = { - .name ="OAKS32R-IRQ" , - .startup = startup_oaks32r_irq, - .shutdown = shutdown_oaks32r_irq, - .enable = enable_oaks32r_irq, - .disable = disable_oaks32r_irq, - .ack = mask_and_ack_mappi, - .end = end_oaks32r_irq + .name ="OAKS32R-IRQ" , + .irq_shutdown = shutdown_oaks32r, + .irq_mask = mask_oaks32r, + .irq_unmask = unmask_oaks32r, };void __init init_IRQ (void )
@@ -83,34 +74,40 @@ void __init init_IRQ(void)#ifdef CONFIG_NE2000 /* INT3 : LAN controller (RTL8019AS) */ -set_irq_chip (M32R_IRQ_INT3 , &oaks32r_irq_type); +set_irq_chip_and_handler (M32R_IRQ_INT3 , &oaks32r_irq_type, + handle_level_irq); icu_data[M32R_IRQ_INT3 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD10 ;disable_oaks32r_irq (M32R_IRQ_INT3 );#endif /* CONFIG_M32R_NE2000 */ /* MFT2 : system timer */ -set_irq_chip (M32R_IRQ_MFT2 , &oaks32r_irq_type); +set_irq_chip_and_handler (M32R_IRQ_MFT2 , &oaks32r_irq_type, + handle_level_irq); icu_data[M32R_IRQ_MFT2 ].icucr =M32R_ICUCR_IEN ;disable_oaks32r_irq (M32R_IRQ_MFT2 );#ifdef CONFIG_SERIAL_M32R_SIO /* SIO0_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO0_R , &oaks32r_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_R , &oaks32r_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_R ].icucr =0 ;disable_oaks32r_irq (M32R_IRQ_SIO0_R );/* SIO0_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO0_S , &oaks32r_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_S , &oaks32r_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_S ].icucr =0 ;disable_oaks32r_irq (M32R_IRQ_SIO0_S );/* SIO1_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO1_R , &oaks32r_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_R , &oaks32r_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_R ].icucr =0 ;disable_oaks32r_irq (M32R_IRQ_SIO1_R );/* SIO1_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO1_S , &oaks32r_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_S , &oaks32r_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_S ].icucr =0 ;disable_oaks32r_irq (M32R_IRQ_SIO1_S );#endif /* CONFIG_SERIAL_M32R_SIO */
PATCH 18/37 m32r: Convert opsput irq chip
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/opsput/setup.c | 58 +++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 31 deletions(-)
arch/m32r/platforms/opsput/setup.c +27 -31
@@ -46,39 +46,30 @@ static void enable_opsput_irq(unsigned ioutl (data, port); } -static void mask_and_ack_opsput (unsigned int irq) +static void mask_opsput (struct irq_data *data) { -disable_opsput_irq (irq); +disable_opsput_irq (data->irq); } -static void end_opsput_irq (unsigned int irq) +static void unmask_opsput (struct irq_data *data) { -enable_opsput_irq (irq); +enable_opsput_irq (data->irq); } -static unsigned int startup_opsput_irq (unsigned int irq) -{ -enable_opsput_irq (irq); -return (0 ); -} - -static void shutdown_opsput_irq (unsigned int irq) +static void shutdown_opsput (struct irq_data *data) {unsigned long port; - port =irq2port (irq); + port =irq2port (data->irq);outl (M32R_ICUCR_ILEVEL7 , port); }static struct irq_chip opsput_irq_type = { - .name ="OPSPUT-IRQ" , - .startup = startup_opsput_irq, - .shutdown = shutdown_opsput_irq, - .enable = enable_opsput_irq, - .disable = disable_opsput_irq, - .ack = mask_and_ack_opsput, - .end = end_opsput_irq + .name ="OPSPUT-IRQ" , + .irq_shutdown = shutdown_opsput, + .irq_mask = mask_opsput, + .irq_unmask = unmask_opsput, };/*
@@ -100,7 +91,6 @@ static void disable_opsput_pld_irq(unsigunsigned int pldirq; pldirq =irq2pldirq (irq); -// disable_opsput_irq(M32R_IRQ_INT1); port =pldirq2port (pldirq); data = pld_icu_data[pldirq].icucr|PLD_ICUCR_ILEVEL7 ;outw (data, port);
@@ -112,7 +102,6 @@ static void enable_opsput_pld_irq(unsignunsigned int pldirq; pldirq =irq2pldirq (irq); -// enable_opsput_irq(M32R_IRQ_INT1); port =pldirq2port (pldirq); data = pld_icu_data[pldirq].icucr|PLD_ICUCR_IEN |PLD_ICUCR_ILEVEL6 ;outw (data, port);
@@ -127,7 +116,7 @@ static void mask_and_ack_opsput_pld(unsistatic void end_opsput_pld_irq (unsigned int irq) {enable_opsput_pld_irq (irq); -end_opsput_irq (M32R_IRQ_INT1 ); +enable_opsput_irq (M32R_IRQ_INT1 ); }static unsigned int startup_opsput_pld_irq (unsigned int irq)
@@ -197,7 +186,7 @@ static void mask_and_ack_opsput_lanpld(ustatic void end_opsput_lanpld_irq (unsigned int irq) {enable_opsput_lanpld_irq (irq); -end_opsput_irq (M32R_IRQ_INT0 ); +enable_opsput_irq (M32R_IRQ_INT0 ); }static unsigned int startup_opsput_lanpld_irq (unsigned int irq)
@@ -266,7 +255,7 @@ static void mask_and_ack_opsput_lcdpld(ustatic void end_opsput_lcdpld_irq (unsigned int irq) {enable_opsput_lcdpld_irq (irq); -end_opsput_irq (M32R_IRQ_INT2 ); +enable_opsput_irq (M32R_IRQ_INT2 ); }static unsigned int startup_opsput_lcdpld_irq (unsigned int irq)
@@ -306,32 +295,38 @@ void __init init_IRQ(void)#endif /* CONFIG_SMC91X */ /* MFT2 : system timer */ -set_irq_chip (M32R_IRQ_MFT2 , &opsput_irq_type); +set_irq_chip_and_handler (M32R_IRQ_MFT2 , &opsput_irq_type, + handle_level_irq); icu_data[M32R_IRQ_MFT2 ].icucr =M32R_ICUCR_IEN ;disable_opsput_irq (M32R_IRQ_MFT2 );/* SIO0 : receive */ -set_irq_chip (M32R_IRQ_SIO0_R , &opsput_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_R , &opsput_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_R ].icucr =0 ;disable_opsput_irq (M32R_IRQ_SIO0_R );/* SIO0 : send */ -set_irq_chip (M32R_IRQ_SIO0_S , &opsput_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_S , &opsput_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_S ].icucr =0 ;disable_opsput_irq (M32R_IRQ_SIO0_S );/* SIO1 : receive */ -set_irq_chip (M32R_IRQ_SIO1_R , &opsput_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_R , &opsput_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_R ].icucr =0 ;disable_opsput_irq (M32R_IRQ_SIO1_R );/* SIO1 : send */ -set_irq_chip (M32R_IRQ_SIO1_S , &opsput_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_S , &opsput_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_S ].icucr =0 ;disable_opsput_irq (M32R_IRQ_SIO1_S );/* DMA1 : */ -set_irq_chip (M32R_IRQ_DMA1 , &opsput_irq_type); +set_irq_chip_and_handler (M32R_IRQ_DMA1 , &opsput_irq_type, + handle_level_irq); icu_data[M32R_IRQ_DMA1 ].icucr =0 ;disable_opsput_irq (M32R_IRQ_DMA1 );
@@ -394,7 +389,8 @@ void __init init_IRQ(void)/* * INT3# is used for AR */ -set_irq_chip (M32R_IRQ_INT3 , &opsput_irq_type); +set_irq_chip_and_handler (M32R_IRQ_INT3 , &opsput_irq_type, + handle_level_irq); icu_data[M32R_IRQ_INT3 ].icucr =M32R_ICUCR_IEN |M32R_ICUCR_ISMOD10 ;disable_opsput_irq (M32R_IRQ_INT3 );#endif /* CONFIG_VIDEO_M32R_AR */
PATCH 19/37 m32r: Convert opsput pld irq chip
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/opsput/setup.c | 46 ++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 26 deletions(-)
arch/m32r/platforms/opsput/setup.c +20 -26
@@ -107,44 +107,33 @@ static void enable_opsput_pld_irq(unsignoutw (data, port); } -static void mask_and_ack_opsput_pld (unsigned int irq) +static void mask_opsput_pld (struct irq_data *data) { -disable_opsput_pld_irq (irq); -// mask_and_ack_opsput(M32R_IRQ_INT1); +disable_opsput_pld_irq (data->irq); } -static void end_opsput_pld_irq (unsigned int irq) +static void unmask_opsput_pld (struct irq_data *data) { -enable_opsput_pld_irq (irq); +enable_opsput_pld_irq (data->irq);enable_opsput_irq (M32R_IRQ_INT1 ); } -static unsigned int startup_opsput_pld_irq (unsigned int irq) -{ -enable_opsput_pld_irq (irq); -return (0 ); -} - -static void shutdown_opsput_pld_irq (unsigned int irq) +static void shutdown_opsput_pld (struct irq_data *data) {unsigned long port;unsigned int pldirq; - pldirq =irq2pldirq (irq); -// shutdown_opsput_irq(M32R_IRQ_INT1); + pldirq =irq2pldirq (data->irq); port =pldirq2port (pldirq);outw (PLD_ICUCR_ILEVEL7 , port); }static struct irq_chip opsput_pld_irq_type = { - .name ="OPSPUT-PLD-IRQ" , - .startup = startup_opsput_pld_irq, - .shutdown = shutdown_opsput_pld_irq, - .enable = enable_opsput_pld_irq, - .disable = disable_opsput_pld_irq, - .ack = mask_and_ack_opsput_pld, - .end = end_opsput_pld_irq + .name ="OPSPUT-PLD-IRQ" , + .irq_shutdown = shutdown_opsput_pld, + .irq_mask = mask_opsput_pld, + .irq_unmask = unmask_opsput_pld, };/*
@@ -332,28 +321,33 @@ void __init init_IRQ(void)#ifdef CONFIG_SERIAL_M32R_PLDSIO /* INT#1: SIO0 Receive on PLD */ -set_irq_chip (PLD_IRQ_SIO0_RCV , &opsput_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_SIO0_RCV , &opsput_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_SIO0_RCV )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD03 ;disable_opsput_pld_irq (PLD_IRQ_SIO0_RCV );/* INT#1: SIO0 Send on PLD */ -set_irq_chip (PLD_IRQ_SIO0_SND , &opsput_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_SIO0_SND , &opsput_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_SIO0_SND )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD03 ;disable_opsput_pld_irq (PLD_IRQ_SIO0_SND );#endif /* CONFIG_SERIAL_M32R_PLDSIO */ /* INT#1: CFC IREQ on PLD */ -set_irq_chip (PLD_IRQ_CFIREQ , &opsput_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFIREQ , &opsput_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_CFIREQ )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD01 ;/* 'L' level sense */ disable_opsput_pld_irq (PLD_IRQ_CFIREQ );/* INT#1: CFC Insert on PLD */ -set_irq_chip (PLD_IRQ_CFC_INSERT , &opsput_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFC_INSERT , &opsput_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_CFC_INSERT )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD00 ;/* 'L' edge sense */ disable_opsput_pld_irq (PLD_IRQ_CFC_INSERT );/* INT#1: CFC Eject on PLD */ -set_irq_chip (PLD_IRQ_CFC_EJECT , &opsput_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CFC_EJECT , &opsput_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_CFC_EJECT )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD02 ;/* 'H' edge sense */ disable_opsput_pld_irq (PLD_IRQ_CFC_EJECT );
PATCH 20/37 m32r: Convert opsput lanpld irq chip
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/opsput/setup.c | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-)
arch/m32r/platforms/opsput/setup.c +12 -20
@@ -167,42 +167,33 @@ static void enable_opsput_lanpld_irq(unsoutw (data, port); } -static void mask_and_ack_opsput_lanpld (unsigned int irq) +static void mask_opsput_lanpld (struct irq_data *data) { -disable_opsput_lanpld_irq (irq); +disable_opsput_lanpld_irq (data->irq); } -static void end_opsput_lanpld_irq (unsigned int irq) +static void unmask_opsput_lanpld (struct irq_data *data) { -enable_opsput_lanpld_irq (irq); +enable_opsput_lanpld_irq (data->irq);enable_opsput_irq (M32R_IRQ_INT0 ); } -static unsigned int startup_opsput_lanpld_irq (unsigned int irq) -{ -enable_opsput_lanpld_irq (irq); -return (0 ); -} - -static void shutdown_opsput_lanpld_irq (unsigned int irq) +static void shutdown_opsput_lanpld (struct irq_data *data) {unsigned long port;unsigned int pldirq; - pldirq =irq2lanpldirq (irq); + pldirq =irq2lanpldirq (data->irq); port =lanpldirq2port (pldirq);outw (PLD_ICUCR_ILEVEL7 , port); }static struct irq_chip opsput_lanpld_irq_type = { - .name ="OPSPUT-PLD-LAN-IRQ" , - .startup = startup_opsput_lanpld_irq, - .shutdown = shutdown_opsput_lanpld_irq, - .enable = enable_opsput_lanpld_irq, - .disable = disable_opsput_lanpld_irq, - .ack = mask_and_ack_opsput_lanpld, - .end = end_opsput_lanpld_irq + .name ="OPSPUT-PLD-LAN-IRQ" , + .irq_shutdown = shutdown_opsput_lanpld, + .irq_mask = mask_opsput_lanpld, + .irq_unmask = unmask_opsput_lanpld, };/*
@@ -278,7 +269,8 @@ void __init init_IRQ(void) {#if defined(CONFIG_SMC91X )/* INT#0: LAN controller on OPSPUT-LAN (SMC91C111)*/ -set_irq_chip (OPSPUT_LAN_IRQ_LAN , &opsput_lanpld_irq_type); +set_irq_chip_and_handler (OPSPUT_LAN_IRQ_LAN , &opsput_lanpld_irq_type, + handle_level_irq); lanpld_icu_data[irq2lanpldirq (OPSPUT_LAN_IRQ_LAN )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD02 ;/* "H" edge sense */ disable_opsput_lanpld_irq (OPSPUT_LAN_IRQ_LAN );#endif /* CONFIG_SMC91X */
PATCH 21/37 m32r: Convert opsput_lcdpld irq chip
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/opsput/setup.c | 42 ++++++++++++++----------------------- 1 file changed, 16 insertions(+), 26 deletions(-)
arch/m32r/platforms/opsput/setup.c +16 -26
@@ -227,42 +227,32 @@ static void enable_opsput_lcdpld_irq(unsoutw (data, port); } -static void mask_and_ack_opsput_lcdpld (unsigned int irq) +static void mask_opsput_lcdpld (struct irq_data *data) { -disable_opsput_lcdpld_irq (irq); +disable_opsput_lcdpld_irq (data->irq); } -static void end_opsput_lcdpld_irq (unsigned int irq) +static void unmask_opsput_lcdpld (struct irq_data *data) { -enable_opsput_lcdpld_irq (irq); +enable_opsput_lcdpld_irq (data->irq);enable_opsput_irq (M32R_IRQ_INT2 ); } -static unsigned int startup_opsput_lcdpld_irq (unsigned int irq) -{ -enable_opsput_lcdpld_irq (irq); -return (0 ); -} - -static void shutdown_opsput_lcdpld_irq (unsigned int irq) +static void shutdown_opsput_lcdpld (struct irq_data *data) {unsigned long port;unsigned int pldirq; - pldirq =irq2lcdpldirq (irq); + pldirq =irq2lcdpldirq (data->irq); port =lcdpldirq2port (pldirq);outw (PLD_ICUCR_ILEVEL7 , port); } -static struct irq_chip opsput_lcdpld_irq_type = -{ -"OPSPUT-PLD-LCD-IRQ" , - startup_opsput_lcdpld_irq, - shutdown_opsput_lcdpld_irq, - enable_opsput_lcdpld_irq, - disable_opsput_lcdpld_irq, - mask_and_ack_opsput_lcdpld, - end_opsput_lcdpld_irq +static struct irq_chip opsput_lcdpld_irq_type = { + .name ="OPSPUT-PLD-LCD-IRQ" , + .irq_shutdown = shutdown_opsput_lcdpld, + .irq_mask = mask_opsput_lcdpld, + .irq_unmask = unmask_opsput_lcdpld, };void __init init_IRQ (void )
@@ -358,11 +348,11 @@ void __init init_IRQ(void)enable_opsput_irq (M32R_IRQ_INT1 );#if defined(CONFIG_USB ) -outw (USBCR_OTGS ,USBCR );/* USBCR: non-OTG */ - -set_irq_chip (OPSPUT_LCD_IRQ_USB_INT1 , &opsput_lcdpld_irq_type); - lcdpld_icu_data[irq2lcdpldirq (OPSPUT_LCD_IRQ_USB_INT1 )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD01 ;/* "L" level sense */ -disable_opsput_lcdpld_irq (OPSPUT_LCD_IRQ_USB_INT1 ); +outw (USBCR_OTGS ,USBCR );/* USBCR: non-OTG */ +set_irq_chip_and_handler (OPSPUT_LCD_IRQ_USB_INT1 , + &opsput_lcdpld_irq_type, handle_level_irq); + lcdpld_icu_data[irq2lcdpldirq (OPSPUT_LCD_IRQ_USB_INT1 )].icucr =PLD_ICUCR_IEN |PLD_ICUCR_ISMOD01 ;/* "L" level sense */ +disable_opsput_lcdpld_irq (OPSPUT_LCD_IRQ_USB_INT1 );#endif /* * INT2# is used for BAT, USB, AUDIO
PATCH 22/37 m32r: Convert usrv platform irq handling
In reply to Thomas GleixnerConvert the irq chips to the new functions and use proper flow handlers. handle_level_irq is appropriate.
--- arch/m32r/platforms/usrv/setup.c | 88 +++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 48 deletions(-)
arch/m32r/platforms/usrv/setup.c +40 -48
@@ -37,39 +37,30 @@ static void enable_mappi_irq(unsigned inoutl (data, port); } -static void mask_and_ack_mappi (unsigned int irq) +static void mask_mappi (struct irq_data *data) { -disable_mappi_irq (irq); +disable_mappi_irq (data->irq); } -static void end_mappi_irq (unsigned int irq) +static void unmask_mappi (struct irq_data *data) { -enable_mappi_irq (irq); +enable_mappi_irq (data->irq); } -static unsigned int startup_mappi_irq (unsigned int irq) -{ -enable_mappi_irq (irq); -return 0 ; -} - -static void shutdown_mappi_irq (unsigned int irq) +static void shutdown_mappi (struct irq_data *data) {unsigned long port; - port =irq2port (irq); + port =irq2port (data->irq);outl (M32R_ICUCR_ILEVEL7 , port); }static struct irq_chip mappi_irq_type = { - .name ="M32700-IRQ" , - .startup = startup_mappi_irq, - .shutdown = shutdown_mappi_irq, - .enable = enable_mappi_irq, - .disable = disable_mappi_irq, - .ack = mask_and_ack_mappi, - .end = end_mappi_irq + .name ="M32700-IRQ" , + .irq_shutdown = shutdown_mappi, + .irq_mask = mask_mappi, + .irq_unmask = unmask_mappi, };/*
@@ -107,42 +98,33 @@ static void enable_m32700ut_pld_irq(unsioutw (data, port); } -static void mask_and_ack_m32700ut_pld (unsigned int irq) -{ -disable_m32700ut_pld_irq (irq); -} - -static void end_m32700ut_pld_irq (unsigned int irq) +static void mask_m32700ut_pld (struct irq_data *data) { -enable_m32700ut_pld_irq (irq); -end_mappi_irq (M32R_IRQ_INT1 ); +disable_m32700ut_pld_irq (data->irq); } -static unsigned int startup_m32700ut_pld_irq (unsigned int irq) +static void unmask_m32700ut_pld (struct irq_data *data) { -enable_m32700ut_pld_irq (irq); -return 0 ; +enable_m32700ut_pld_irq (data->irq); +enable_mappi_irq (M32R_IRQ_INT1 ); } -static void shutdown_m32700ut_pld_irq (unsigned int irq) +static void shutdown_m32700ut_pld (struct irq_data *data) {unsigned long port;unsigned int pldirq; - pldirq =irq2pldirq (irq); + pldirq =irq2pldirq (data->irq); port =pldirq2port (pldirq);outw (PLD_ICUCR_ILEVEL7 , port); }static struct irq_chip m32700ut_pld_irq_type = { - .name ="USRV-PLD-IRQ" , - .startup = startup_m32700ut_pld_irq, - .shutdown = shutdown_m32700ut_pld_irq, - .enable = enable_m32700ut_pld_irq, - .disable = disable_m32700ut_pld_irq, - .ack = mask_and_ack_m32700ut_pld, - .end = end_m32700ut_pld_irq + .name ="USRV-PLD-IRQ" , + .irq_shutdown = shutdown_m32700ut_pld, + .irq_mask = mask_m32700ut_pld, + .irq_unmask = unmask_m32700ut_pld, };void __init init_IRQ (void )
@@ -156,35 +138,42 @@ void __init init_IRQ(void) once++;/* MFT2 : system timer */ -set_irq_chip (M32R_IRQ_MFT2 , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_MFT2 , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_MFT2 ].icucr =M32R_ICUCR_IEN ;disable_mappi_irq (M32R_IRQ_MFT2 );#if defined(CONFIG_SERIAL_M32R_SIO )/* SIO0_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO0_R , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_R , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_R ].icucr =0 ;disable_mappi_irq (M32R_IRQ_SIO0_R );/* SIO0_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO0_S , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO0_S , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO0_S ].icucr =0 ;disable_mappi_irq (M32R_IRQ_SIO0_S );/* SIO1_R : uart receive data */ -set_irq_chip (M32R_IRQ_SIO1_R , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_R , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_R ].icucr =0 ;disable_mappi_irq (M32R_IRQ_SIO1_R );/* SIO1_S : uart send data */ -set_irq_chip (M32R_IRQ_SIO1_S , &mappi_irq_type); +set_irq_chip_and_handler (M32R_IRQ_SIO1_S , &mappi_irq_type, + handle_level_irq); icu_data[M32R_IRQ_SIO1_S ].icucr =0 ;disable_mappi_irq (M32R_IRQ_SIO1_S );#endif /* CONFIG_SERIAL_M32R_SIO */ /* INT#67-#71: CFC#0 IREQ on PLD */ for (i =0 ; i <CONFIG_M32R_CFC_NUM ; i++ ) { -set_irq_chip (PLD_IRQ_CF0 + i, &m32700ut_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_CF0 + i, + &m32700ut_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_CF0 + i)].icucr =PLD_ICUCR_ISMOD01 ;/* 'L' level sense */ disable_m32700ut_pld_irq (PLD_IRQ_CF0 + i);
@@ -192,13 +181,15 @@ void __init init_IRQ(void)#if defined(CONFIG_SERIAL_8250 ) || defined(CONFIG_SERIAL_8250_MODULE )/* INT#76: 16552D#0 IREQ on PLD */ -set_irq_chip (PLD_IRQ_UART0 , &m32700ut_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_UART0 , &m32700ut_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_UART0 )].icucr =PLD_ICUCR_ISMOD03 ;/* 'H' level sense */ disable_m32700ut_pld_irq (PLD_IRQ_UART0 );/* INT#77: 16552D#1 IREQ on PLD */ -set_irq_chip (PLD_IRQ_UART1 , &m32700ut_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_UART1 , &m32700ut_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_UART1 )].icucr =PLD_ICUCR_ISMOD03 ;/* 'H' level sense */ disable_m32700ut_pld_irq (PLD_IRQ_UART1 );
@@ -206,7 +197,8 @@ void __init init_IRQ(void)#if defined(CONFIG_IDC_AK4524 ) || defined(CONFIG_IDC_AK4524_MODULE )/* INT#80: AK4524 IREQ on PLD */ -set_irq_chip (PLD_IRQ_SNDINT , &m32700ut_pld_irq_type); +set_irq_chip_and_handler (PLD_IRQ_SNDINT , &m32700ut_pld_irq_type, + handle_level_irq); pld_icu_data[irq2pldirq (PLD_IRQ_SNDINT )].icucr =PLD_ICUCR_ISMOD01 ;/* 'L' level sense */ disable_m32700ut_pld_irq (PLD_IRQ_SNDINT );
PATCH 23/37 m32r: Convert to generic irq Kconfig
In reply to Thomas GleixnerUse the generic irq Kconfig. Select GENERIC_HARDIRQS_NO_DEPRECATED as we have converted all irq_chip functions.
--- arch/m32r/Kconfig | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
arch/m32r/Kconfig +3 -8
@@ -7,6 +7,9 @@ config M32R select HAVE_KERNEL_GZIP select HAVE_KERNEL_BZIP2 select HAVE_KERNEL_LZMA + select HAVE_GENERIC_HARDIRQS + select GENERIC_HARDIRQS_NO_DEPRECATED + select GENERIC_IRQ_PROBE config SBUS bool
@@ -19,14 +22,6 @@ config ZONE_DMA bool default y -config GENERIC_HARDIRQS - bool - default y - -config GENERIC_IRQ_PROBE - bool - default y - config NO_IOPORT def_bool y
PATCH 24/37 genirq: Remove __do_IRQ
In reply to Thomas GleixnerAll architectures are finally converted. Remove the cruft.
--- Documentation/feature-removal-schedule.txt | 8 -- arch/alpha/Kconfig | 3 arch/blackfin/Kconfig | 3 arch/frv/Kconfig | 4 - arch/ia64/Kconfig | 3 arch/m68knommu/Kconfig | 4 - arch/microblaze/Kconfig | 3 arch/mips/Kconfig | 3 arch/mn10300/Kconfig | 3 arch/parisc/Kconfig | 4 - arch/powerpc/Kconfig | 4 - arch/score/Kconfig | 3 arch/sparc/Kconfig | 4 - arch/tile/Kconfig | 3 arch/um/Kconfig.um | 3 include/linux/irqdesc.h | 14 --- kernel/irq/Kconfig | 3 kernel/irq/handle.c | 111 ----------------------------- 18 files changed, 183 deletions(-)
Documentation/feature-removal-schedule.txt +0 -8
@@ -357,14 +357,6 @@ Who: Dave Jones <[email protected]>, Matt ----------------------------- -What: __do_IRQ all in one fits nothing interrupt handler -When: 2.6.32 -Why: __do_IRQ was kept for easy migration to the type flow handlers. - More than two years of migration time is enough. -Who: Thomas Gleixner <[email protected]> - ------------------------------ - What: fakephp and associated sysfs files in /sys/bus/pci/slots/ When: 2011 Why: In 2.6.27, the semantics of /sys/bus/pci/slots was redefined to
arch/alpha/Kconfig +0 -3
@@ -68,9 +68,6 @@ config GENERIC_IOMAP bool default n -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - config GENERIC_HARDIRQS bool default y
arch/blackfin/Kconfig +0 -3
@@ -50,9 +50,6 @@ config GENERIC_HARDIRQS config GENERIC_IRQ_PROBE def_bool y -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - config GENERIC_GPIO def_bool y
arch/frv/Kconfig +0 -4
@@ -33,10 +33,6 @@ config GENERIC_HARDIRQS bool default y -config GENERIC_HARDIRQS_NO__DO_IRQ - bool - default y - config TIME_LOW_RES bool default y
arch/ia64/Kconfig +0 -3
@@ -684,9 +684,6 @@ source "lib/Kconfig" config GENERIC_HARDIRQS def_bool y -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - config GENERIC_IRQ_PROBE bool default y
arch/m68knommu/Kconfig +0 -4
@@ -52,10 +52,6 @@ config GENERIC_HARDIRQS bool default y -config GENERIC_HARDIRQS_NO__DO_IRQ - bool - default y - config GENERIC_CALIBRATE_DELAY bool default y
arch/microblaze/Kconfig +0 -3
@@ -52,9 +52,6 @@ config GENERIC_TIME_VSYSCALL config GENERIC_CLOCKEVENTS def_bool y -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - config GENERIC_GPIO def_bool y
arch/mips/Kconfig +0 -3
@@ -793,9 +793,6 @@ config SCHED_OMIT_FRAME_POINTER bool default y -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - # # Select some configuration options automatically based on user selections. #
arch/mn10300/Kconfig +0 -3
@@ -34,9 +34,6 @@ config RWSEM_GENERIC_SPINLOCK config RWSEM_XCHGADD_ALGORITHM bool -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - config GENERIC_CALIBRATE_DELAY def_bool y
arch/parisc/Kconfig +0 -4
@@ -12,7 +12,6 @@ config PARISC select HAVE_IRQ_WORK select HAVE_PERF_EVENTS select GENERIC_ATOMIC64 if !64BIT - select GENERIC_HARDIRQS_NO__DO_IRQ help The PA-RISC microprocessor is designed by Hewlett-Packard and used in many of their workstations & servers (HP9000 700 and 800 series,
@@ -79,9 +78,6 @@ config IRQ_PER_CPU bool default y -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - # unless you want to implement ACPI on PA-RISC ... ;-) config PM bool
arch/powerpc/Kconfig +0 -4
@@ -40,10 +40,6 @@ config GENERIC_HARDIRQS bool default y -config GENERIC_HARDIRQS_NO__DO_IRQ - bool - default y - config HAVE_SETUP_PER_CPU_AREA def_bool PPC64
arch/score/Kconfig +0 -3
@@ -53,9 +53,6 @@ config GENERIC_CLOCKEVENTS config SCHED_NO_NO_OMIT_FRAME_POINTER def_bool y -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - config GENERIC_SYSCALL_TABLE def_bool y
arch/sparc/Kconfig +0 -4
@@ -107,10 +107,6 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK config NEED_PER_CPU_PAGE_FIRST_CHUNK def_bool y if SPARC64 -config GENERIC_HARDIRQS_NO__DO_IRQ - bool - def_bool y if SPARC64 - config MMU bool default y
arch/tile/Kconfig +0 -3
@@ -10,9 +10,6 @@ config GENERIC_CSUM config GENERIC_HARDIRQS def_bool y -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - config GENERIC_IRQ_PROBE def_bool y
arch/um/Kconfig.um +0 -3
@@ -120,9 +120,6 @@ config SMP If you don't know what to do, say N. -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - config NR_CPUS int "Maximum number of CPUs (2-32)" range 2 32
include/linux/irqdesc.h +0 -14
@@ -101,13 +101,6 @@ static inline struct irq_desc *move_irq_#define get_irq_desc_msi (desc) ((desc)->irq_data.msi_desc)/* -* Monolithic do_IRQ implementation. -*/ -#ifndef CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ -extern unsigned int __do_IRQ (unsigned int irq); -#endif - -/* * Architectures call this to let the generic IRQ layer * handle an interrupt. If the descriptor is attached to an * irqchip-style controller then we call the ->handle_irq() handler,
@@ -115,14 +108,7 @@ extern unsigned int __do_IRQ(unsigned in*/ static inline void generic_handle_irq_desc (unsigned int irq,struct irq_desc *desc) { -#ifdef CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ desc->handle_irq (irq, desc); -#else -if (likely (desc->handle_irq)) - desc->handle_irq (irq, desc); -else -__do_IRQ (irq); -#endif }static inline void generic_handle_irq (unsigned int irq)
kernel/irq/Kconfig +0 -3
@@ -9,9 +9,6 @@ menu "IRQ subsystem" config GENERIC_HARDIRQS def_bool y -config GENERIC_HARDIRQS_NO__DO_IRQ - def_bool y - # Select this to disable the deprecated stuff config GENERIC_HARDIRQS_NO_DEPRECATED def_bool n
kernel/irq/handle.c +0 -111
114 lines not on this page · raw message
Re: [patch 24/37] genirq: Remove __do_IRQ
Quoted 16 lines · Thomas Gleixner
All architectures are finally converted. Remove the cruft.
Signed-off-by Thomas Gleixner <[email protected]>Cc Richard Henderson <[email protected]>Cc Mike Frysinger <[email protected]>Cc David Howells <[email protected]>Cc Tony Luck <[email protected]>Cc Greg Ungerer <[email protected]>Cc Michal Simek <[email protected]>Cc David Howells <[email protected]>Cc Kyle McMartin <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Chen Liqin <[email protected]>Cc "David S. Miller" <[email protected]>Cc Chris Metcalf <[email protected]>Cc Jeff Dike <[email protected]>
Finally!
Benjamin Herrenschmidt
Acked-byRe: [patch 24/37] genirq: Remove __do_IRQ
Quoted 19 lines · David Howells
Quoted 16 lines · Thomas Gleixner
All architectures are finally converted. Remove the cruft.
Signed-off-by Thomas Gleixner <[email protected]>Cc Richard Henderson <[email protected]>Cc Mike Frysinger <[email protected]>Cc David Howells <[email protected]>Cc Tony Luck <[email protected]>Cc Greg Ungerer <[email protected]>Cc Michal Simek <[email protected]>Cc David Howells <[email protected]>Cc Kyle McMartin <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Chen Liqin <[email protected]>Cc "David S. Miller" <[email protected]>Cc Chris Metcalf <[email protected]>Cc Jeff Dike <[email protected]>
Quoted 1 line
Finally!
Yeah, Amen !
Cheers,
Ben.
PATCH 25/37 alpha: Use generic irq Kconfig
In reply to Thomas Gleixner--- arch/alpha/Kconfig | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-)
arch/alpha/Kconfig +3 -13
@@ -8,6 +8,9 @@ config ALPHA select HAVE_IRQ_WORK select HAVE_PERF_EVENTS select HAVE_DMA_ATTRS + select HAVE_GENERIC_HARDIRQS + select GENERIC_IRQ_PROBE + select AUTO_IRQ_AFFINITY if SMP help The Alpha is a 64-bit general-purpose processor designed and marketed by the Digital Equipment Corporation of blessed memory,
@@ -68,19 +71,6 @@ config GENERIC_IOMAP bool default n -config GENERIC_HARDIRQS - bool - default y - -config GENERIC_IRQ_PROBE - bool - default y - -config AUTO_IRQ_AFFINITY - bool - depends on SMP - default y - source "init/Kconfig" source "kernel/Kconfig.freezer"
PATCH 26/37 blackfin: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/blackfin/Kconfig | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-)
arch/blackfin/Kconfig +3 -11
@@ -30,6 +30,9 @@ config BLACKFIN select HAVE_KERNEL_LZO if RAMKERNEL select HAVE_OPROFILE select ARCH_WANT_OPTIONAL_GPIOLIB + select HAVE_GENERIC_HARDIRQS + select GENERIC_IRQ_PROBE + select IRQ_PER_CPU if SMP config GENERIC_CSUM def_bool y
@@ -44,12 +47,6 @@ config ZONE_DMA config GENERIC_FIND_NEXT_BIT def_bool y -config GENERIC_HARDIRQS - def_bool y - -config GENERIC_IRQ_PROBE - def_bool y - config GENERIC_GPIO def_bool y
@@ -251,11 +248,6 @@ config HOTPLUG_CPU depends on SMP && HOTPLUG default y -config IRQ_PER_CPU - bool - depends on SMP - default y - config HAVE_LEGACY_PER_CPU_AREA def_bool y depends on SMP
PATCH 27/37 frv: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/frv/Kconfig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
arch/frv/Kconfig +1 -4
@@ -5,6 +5,7 @@ config FRV select HAVE_ARCH_TRACEHOOK select HAVE_IRQ_WORK select HAVE_PERF_EVENTS + select HAVE_GENERIC_HARDIRQS config ZONE_DMA bool
@@ -29,10 +30,6 @@ config GENERIC_CALIBRATE_DELAY bool default n -config GENERIC_HARDIRQS - bool - default y - config TIME_LOW_RES bool default y
Re: [patch 27/37] frv: Use generic irq Kconfig
Quoted 4 lines · Thomas Gleixner
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>Cc David Howells <[email protected]>
PATCH 28/37 ia64: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/ia64/Kconfig | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-)
arch/ia64/Kconfig +4 -19
@@ -22,6 +22,10 @@ config IA64 select HAVE_KVM select HAVE_ARCH_TRACEHOOK select HAVE_DMA_API_DEBUG + select HAVE_GENERIC_HARDIRQS + select GENERIC_IRQ_PROBE + select GENERIC_PENDING_IRQ if SMP + select IRQ_PER_CPU default y help The Itanium Processor Family is Intel's 64-bit successor to
@@ -678,25 +682,6 @@ source "arch/ia64/kvm/Kconfig" source "lib/Kconfig" -# -# Use the generic interrupt handling code in kernel/irq/: -# -config GENERIC_HARDIRQS - def_bool y - -config GENERIC_IRQ_PROBE - bool - default y - -config GENERIC_PENDING_IRQ - bool - depends on GENERIC_HARDIRQS && SMP - default y - -config IRQ_PER_CPU - bool - default y - config IOMMU_HELPER def_bool (IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB || IA64_GENERIC || SWIOTLB)
RE: [patch 28/37] ia64: Use generic irq Kconfig
Quoted 1 line
No functional change.
PATCH 29/37 m68knommu: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/m68knommu/Kconfig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
arch/m68knommu/Kconfig +1 -4
@@ -2,6 +2,7 @@ config M68K bool default y select HAVE_IDE + select HAVE_GENERIC_HARDIRQS config MMU bool
@@ -48,10 +49,6 @@ config GENERIC_HWEIGHT bool default y -config GENERIC_HARDIRQS - bool - default y - config GENERIC_CALIBRATE_DELAY bool default y
PATCH 30/37 microblaze: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/microblaze/Kconfig | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
arch/microblaze/Kconfig +2 -6
@@ -15,6 +15,8 @@ config MICROBLAZE select TRACING_SUPPORT select OF select OF_EARLY_FLATTREE + select HAVE_GENERIC_HARDIRQS + select GENERIC_IRQ_PROBE config SWAP def_bool n
@@ -37,12 +39,6 @@ config GENERIC_FIND_NEXT_BIT config GENERIC_HWEIGHT def_bool y -config GENERIC_HARDIRQS - def_bool y - -config GENERIC_IRQ_PROBE - def_bool y - config GENERIC_CALIBRATE_DELAY def_bool y
Re: [patch 30/37] microblaze: Use generic irq Kconfig
Quoted 7 lines
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>Cc Michal Simek <[email protected]>--- arch/microblaze/Kconfig | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian
PATCH 31/37 mn10300: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/mn10300/Kconfig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
arch/mn10300/Kconfig +1 -4
@@ -1,6 +1,7 @@ config MN10300 def_bool y select HAVE_OPROFILE + select GENERIC_HARDIRQS config AM33_2 def_bool n
@@ -76,10 +77,6 @@ config QUICKLIST config ARCH_HAS_ILOG2_U32 def_bool y -# Use the generic interrupt handling code in kernel/irq/ -config GENERIC_HARDIRQS - def_bool y - config HOTPLUG_CPU def_bool n
Re: [patch 31/37] mn10300: Use generic irq Kconfig
Quoted 4 lines · Thomas Gleixner
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>Cc David Howells <[email protected]>
Re: [patch 31/37] mn10300: Use generic irq Kconfig
In reply to Thomas GleixnerQuoted 13 lines · Thomas Gleixner
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>Cc David Howells <[email protected]>---
arch/mn10300/Kconfig | 5 +----1 file changed, 1 insertion(+), 4 deletions(-)Index: linux-2.6/arch/mn10300/Kconfig
===================================================================arch/mn10300/Kconfig +0
-0@@ -1,6 +1,7 @@
Quoted 4 lines
config MN10300
def_bool y
selectHAVE_OPROFILE
+ selectGENERIC_HARDIRQS
Wasn't this supposed to be "select HAVE_GENERIC_HARDIRQS"?
/me studying generic hardirqs...
Quoted 11 lines
config
AM33_2
def_bool narch/mn10300/Kconfig +0
-0@@ -76,10 +77,6 @@ config QUICKLISTconfig
ARCH_HAS_ILOG2_U32
def_bool yarch/mn10300/Kconfig +0
-4-# Use the generic interrupt handling code in kernel/irq/ -config GENERIC_HARDIRQS - def_bool y -
Quoted 2 lines
config
HOTPLUG_CPU
def_bool n
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [patch 31/37] mn10300: Use generic irq Kconfig
Quoted 21 lines · Geert Uytterhoeven
Quoted 13 lines · Thomas Gleixner
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>Cc David Howells <[email protected]>---
arch/mn10300/Kconfig | 5 +----1 file changed, 1 insertion(+), 4 deletions(-)Index: linux-2.6/arch/mn10300/Kconfig
===================================================================arch/mn10300/Kconfig +0
-0@@ -1,6 +1,7 @@Quoted 4 lines
config MN10300
def_bool y
selectHAVE_OPROFILE
+ selectGENERIC_HARDIRQSWasn't this supposed to be "select
HAVE_GENERIC_HARDIRQS"?
Quoted 1 line
/me studying generic hardirqs...
One could hope this was nicely documented in kernel/irq/Kconfig. But that file contains only 9 lines of comments for 10 config symbols.
Maybe it is just me but I was struggeling understanding the purpose of these config symbols.
I found the individual bits of genirq nicely documented in most cases. But the overall picture was/is hard to get.
And I never got enough understanding to write up something myself :-(
Sam
Re: [patch 31/37] mn10300: Use generic irq Kconfig
Quoted 10 lines · Sam Ravnborg
Quoted 9 lines · Geert Uytterhoeven
Quoted 8 lines · Thomas Gleixner
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>Cc David Howells <[email protected]>---
arch/mn10300/Kconfig | 5 +----1 file changed, 1 insertion(+), 4 deletions(-)
Quoted 11 lines
Quoted 11 lines
Quoted 9 lines
Index: linux-2.6/arch/mn10300/Kconfig
===================================================================arch/mn10300/Kconfig +0
-0@@ -1,6 +1,7 @@config MN10300
def_bool y
selectHAVE_OPROFILE
+ selectGENERIC_HARDIRQSWasn't this supposed to be "select
HAVE_GENERIC_HARDIRQS"?
Crap, yes.
Quoted 5 lines
Quoted 1 line
/me studying generic hardirqs...
One could hope this was nicely documented in
kernel/irq/Kconfig. But that file contains only 9 lines of comments for 10 config symbols.
Quoted 7 lines
Maybe it is just me but I was struggeling understanding the purpose of these config symbols.
I found the individual bits of genirq nicely documented in most cases. But the overall picture was/is hard to get.
And I never got enough understanding to write up something myself :-(
Point taken. /me goes and adds comments :)
tglx
PATCH 32/37 parisc: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/parisc/Kconfig | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-)
arch/parisc/Kconfig +4 -10
@@ -12,6 +12,10 @@ config PARISC select HAVE_IRQ_WORK select HAVE_PERF_EVENTS select GENERIC_ATOMIC64 if !64BIT + select HAVE_GENERIC_HARDIRQS + select GENERIC_IRQ_PROBE + select IRQ_PER_CPU + help The PA-RISC microprocessor is designed by Hewlett-Packard and used in many of their workstations & servers (HP9000 700 and 800 series,
@@ -65,19 +69,9 @@ config TIME_LOW_RES depends on SMP default y -config GENERIC_HARDIRQS - def_bool y - -config GENERIC_IRQ_PROBE - def_bool y - config HAVE_LATENCYTOP_SUPPORT def_bool y -config IRQ_PER_CPU - bool - default y - # unless you want to implement ACPI on PA-RISC ... ;-) config PM bool
James Bottomley
maintainerRe: [patch 32/37] parisc: Use generic irq Kconfig
Quoted 2 lines · Thomas Gleixner
plain text document attachment (parisc-use-generic-irq-Kconfig.patch) No functional change.
Not quite true ... you take out GENERIC_HARDIRQS but select HAVE_GENERIC_HARDIRQS ... is that right?
Quoted 2 lines
Signed-off-by Thomas Gleixner <[email protected]>Cc Kyle McMartin <[email protected]>
Plus, it doesn't apply:
Hunk #1 FAILED at 12.
Hunk #2 FAILED at 65.
2 out of 2 hunks FAILED -- saving rejects to filearch/parisc/Kconfig.rej
It looks like it was made before we did our generic irq conversion in the 2.6.36 merge window.
James
Re: [patch 32/37] parisc: Use generic irq Kconfig
Quoted 6 lines · James Bottomley
Quoted 2 lines · Thomas Gleixner
plain text document attachment (parisc-use-generic-irq-Kconfig.patch) No functional change.
Not quite true ... you take out
GENERIC_HARDIRQSbut selectHAVE_GENERIC_HARDIRQS... is that right?
HAVE_GENERIC_HARDIRQS enables the Kconfig file in kernel/irq/
Quoted 5 lines
Quoted 2 lines
Signed-off-by Thomas Gleixner <[email protected]>Cc Kyle McMartin <[email protected]>Plus, it doesn't apply:
Quoted 7 lines
Hunk #1 FAILED at 12.
Hunk #2 FAILED at 65.
2 out of 2 hunks FAILED -- saving rejects to filearch/parisc/Kconfig.rejIt looks like it was made before we did our generic irq conversion in the 2.6.36 merge window.
You meant 38 window :) Patch is against 38-rc1 but depends on [patch 24/37] genirq: Remove __do_IRQ in this very same series.
Thanks,
tglx
James Bottomley
maintainerRe: [patch 32/37] parisc: Use generic irq Kconfig
Quoted 10 lines · Thomas Gleixner
Quoted 6 lines · James Bottomley
Quoted 2 lines · Thomas Gleixner
plain text document attachment (parisc-use-generic-irq-Kconfig.patch) No functional change.
Not quite true ... you take out
GENERIC_HARDIRQSbut selectHAVE_GENERIC_HARDIRQS... is that right?
HAVE_GENERIC_HARDIRQSenables theKconfigfile inkernel/irq/
Ah, OK, thanks.
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines
Signed-off-by Thomas Gleixner <[email protected]>Cc Kyle McMartin <[email protected]>Plus, it doesn't apply:
Hunk #1 FAILED at 12.
Hunk #2 FAILED at 65.
2 out of 2 hunks FAILED -- saving rejects to filearch/parisc/Kconfig.rej
Quoted 4 lines
Quoted 2 lines
It looks like it was made before we did our generic irq conversion in the 2.6.36 merge window.
You meant 38 window :)
No ... it went in when Kyle was maintainer ... so that's at least 37 or before.
Quoted 2 lines
Patch is against 38-rc1 but depends on [patch
24/37] genirq: Remove__do_IRQin this very same series.
Ah, great ... missed that one. With this it all seems to work, so you can add my ack to the parisc piece.
James
PATCH 33/37 powerpc: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/powerpc/Kconfig | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-)
arch/powerpc/Kconfig +3 -21
@@ -36,20 +36,12 @@ config GENERIC_TIME_VSYSCALL config GENERIC_CLOCKEVENTS def_bool y -config GENERIC_HARDIRQS - bool - default y - config HAVE_SETUP_PER_CPU_AREA def_bool PPC64 config NEED_PER_CPU_EMBED_FIRST_CHUNK def_bool PPC64 -config IRQ_PER_CPU - bool - default y - config NR_IRQS int "Number of virtual interrupt numbers" range 32 32768
@@ -139,6 +131,9 @@ config PPC select HAVE_PERF_EVENTS select HAVE_REGS_AND_STACK_ACCESS_API select HAVE_HW_BREAKPOINT if PERF_EVENTS && PPC_BOOK3S_64 + select HAVE_GENERIC_HARDIRQS + select HAVE_SPARSE_IRQ + select IRQ_PER_CPU config EARLY_PRINTK bool
@@ -388,19 +383,6 @@ config IRQ_ALL_CPUS CPU. Generally saying Y is safe, although some problems have been reported with SMP Power Macintoshes with this option enabled. -config SPARSE_IRQ - bool "Support sparse irq numbering" - default n - help - This enables support for sparse irqs. This is useful for distro - kernels that want to define a high CONFIG_NR_CPUS value but still - want to have low kernel memory footprint on smaller machines. - - ( Sparse IRQs can also be beneficial on NUMA boxes, as they spread - out the irq_desc[] array in a more NUMA-friendly way. ) - - If you don't know what to do here, say N. - config NUMA bool "NUMA support" depends on PPC64
PATCH 34/37 score: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change
--- arch/score/Kconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
arch/score/Kconfig +4 -3
@@ -1,5 +1,9 @@ menu "Machine selection" +config SCORE + def_bool y + select HAVE_GENERIC_HARDIRQS + choice prompt "System type" default MACH_SPCT6600
@@ -65,9 +69,6 @@ menu "Kernel type" config 32BIT def_bool y -config GENERIC_HARDIRQS - def_bool y - config ARCH_FLATMEM_ENABLE def_bool y
Re: [patch 34/37] score: Use generic irq Kconfig
Thomas Gleixner <[email protected]> 写于 2011-01-20 05:50:05:
Quoted 5 lines
No functional change
Signed-off-by Thomas Gleixner <[email protected]>Cc Chen Liqin <[email protected]>---
--
PATCH 35/37 sparc: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/sparc/Kconfig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
arch/sparc/Kconfig +1 -4
@@ -50,6 +50,7 @@ config SPARC64 select RTC_DRV_STARFIRE select HAVE_PERF_EVENTS select PERF_USE_VMALLOC + select HAVE_GENERIC_HARDIRQS config ARCH_DEFCONFIG string
@@ -272,10 +273,6 @@ config HOTPLUG_CPU can be controlled through /sys/devices/system/cpu/cpu#. Say N if you want to disable CPU hotplug. -config GENERIC_HARDIRQS - bool - default y if SPARC64 - source "kernel/time/Kconfig" if SPARC64
Re: [patch 35/37] sparc: Use generic irq Kconfig
From: Thomas Gleixner <[email protected]>
Date: Wed, 19 Jan 2011 21:50:09 -0000
Quoted 3 lines
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>
PATCH 36/37 tile: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/tile/Kconfig | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)
arch/tile/Kconfig +6 -10
@@ -1,22 +1,18 @@ # For a description of the syntax of this configuration file, # see Documentation/kbuild/config-language.txt. +config TILE + def_bool y + select HAVE_GENERIC_HARDIRQS + select GENERIC_IRQ_PROBE + select GENERIC_PENDING_IRQ if SMP + config MMU def_bool y config GENERIC_CSUM def_bool y -config GENERIC_HARDIRQS - def_bool y - -config GENERIC_IRQ_PROBE - def_bool y - -config GENERIC_PENDING_IRQ - def_bool y - depends on GENERIC_HARDIRQS && SMP - config SEMAPHORE_SLEEPERS def_bool y
Re: [patch 36/37] tile: Use generic irq Kconfig
Quoted 13 lines · Thomas Gleixner
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>Cc Chris Metcalf <[email protected]>--- arch/tile/Kconfig | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)Index: linux-2.6/arch/tile/Kconfig
===================================================================
arch/tile/Kconfig line 9
Quoted 10 lines
arch/tile/Kconfig +6
-0@@ -1,22 +1,18 @@ # For a description of the syntax of this configuration file, # see Documentation/kbuild/config-language.txt. +config TILE + def_bool y + select HAVE_GENERIC_HARDIRQS + select GENERIC_IRQ_PROBE + select GENERIC_PENDING_IRQ if SMP +
I'm not sure it's legal to have two "config TILE" blocks in this Kconfig file; there's already one further down.
Looking at other top-level arch Kconfigs, it does seem common to have the "config $ARCH" block at the top, though, so if you want to move the existing "config TILE" block to the top of the Kconfig as part of this change, that's fine too.
Signature · 2 lines
Chris Metcalf, Tilera Corp. http://www.tilera.com
Re: [patch 36/37] tile: Use generic irq Kconfig
Quoted 17 lines · Chris Metcalf
Quoted 16 lines · Thomas Gleixner
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>Cc Chris Metcalf <[email protected]>--- arch/tile/Kconfig | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)Index: linux-2.6/arch/tile/Kconfig
===================================================================arch/tile/Kconfig +0
-0@@ -1,22 +1,18 @@ # For a description of the syntax of this configuration file, # see Documentation/kbuild/config-language.txt.
Quoted 10 lines
arch/tile/Kconfig line 9
Quoted 7 lines
arch/tile/Kconfig +6
-0+config TILE + def_bool y + select HAVE_GENERIC_HARDIRQS + select GENERIC_IRQ_PROBE + select GENERIC_PENDING_IRQ if SMP +I'm not sure it's legal to have two "config TILE" blocks in this
Kconfigfile; there's already one further down.
It is OK to have two "config TILE" blocks.
You should take care of moving the other one up after this goes in.
Sam
Chris Metcalf
Acked-byRe: [patch 36/37] tile: Use generic irq Kconfig
Quoted 27 lines · Sam Ravnborg
Quoted 17 lines · Chris Metcalf
Quoted 16 lines · Thomas Gleixner
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>Cc Chris Metcalf <[email protected]>--- arch/tile/Kconfig | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)Index: linux-2.6/arch/tile/Kconfig
===================================================================arch/tile/Kconfig +0
-0@@ -1,22 +1,18 @@ # For a description of the syntax of this configuration file, # see Documentation/kbuild/config-language.txt.Quoted 9 lines
arch/tile/Kconfig line 9
Quoted 7 lines
arch/tile/Kconfig +6
-0+config TILE + def_bool y + select HAVE_GENERIC_HARDIRQS + select GENERIC_IRQ_PROBE + select GENERIC_PENDING_IRQ if SMP +I'm not sure it's legal to have two "config TILE" blocks in this
Kconfigfile; there's already one further down.
Quoted 2 lines
It is OK to have two "config TILE" blocks.
You should take care of moving the other one up after this goes in.
In that case I'm happy to ack the original patch.
Signature · 2 lines
Chris Metcalf, Tilera Corp. http://www.tilera.com
Re: [patch 36/37] tile: Use generic irq Kconfig
In reply to Sam RavnborgQuoted 18 lines · Sam Ravnborg
Quoted 17 lines · Chris Metcalf
Quoted 16 lines · Thomas Gleixner
No functional change.
Signed-off-by Thomas Gleixner <[email protected]>Cc Chris Metcalf <[email protected]>--- arch/tile/Kconfig | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)Index: linux-2.6/arch/tile/Kconfig
===================================================================arch/tile/Kconfig +0
-0@@ -1,22 +1,18 @@ # For a description of the syntax of this configuration file, # see Documentation/kbuild/config-language.txt.
Quoted 10 lines
Quoted 10 lines
arch/tile/Kconfig line 9
Quoted 7 lines
arch/tile/Kconfig +6
-0+config TILE + def_bool y + select HAVE_GENERIC_HARDIRQS + select GENERIC_IRQ_PROBE + select GENERIC_PENDING_IRQ if SMP +I'm not sure it's legal to have two "config TILE" blocks in this
Kconfigfile; there's already one further down.
Missed that.
Quoted 2 lines
It is OK to have two "config TILE" blocks.
You should take care of moving the other one up after this goes in.
Will consolidate before sending it upstream.
Thanks,
tglx
PATCH 37/37 um: Use generic irq Kconfig
In reply to Thomas GleixnerNo functional change.
--- arch/um/Kconfig.common | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
arch/um/Kconfig.common +1 -5
@@ -3,14 +3,10 @@ config DEFCONFIG_LIST option defconfig_list default "arch/$ARCH/defconfig" -# UML uses the generic IRQ subsystem -config GENERIC_HARDIRQS - bool - default y - config UML bool default y + select HAVE_GENERIC_HARDIRQS config MMU bool
Quoted 4 lines · Thomas Gleixner
Now that rc1 is out, I got reliable information about the remaining users of
__do_IRQ(), which block the removal:arch/cris,
arch/h8300,arch/m32r
I'm certainly ok with this series. It would be good to finally get rid of this legacy interface, and there's no longer any reason to hold it up. And getting rid of hundreds of lines of code is good too.
Linus
Quoted 6 lines · Linus Torvalds
Quoted 1 line
arch/cris,
arch/h8300,arch/m32rI'm certainly ok with this series. It would be good to finally get rid of this legacy interface, and there's no longer any reason to hold it up. And getting rid of hundreds of lines of code is good too.
I submitted series to clean these 3 up as well (but only got a response from the cris folks...) If the other 2 are effectively unmaintained, should I just submit the clean ups to you? (I think there were some build fixes as well, will have to check.)
--Kyle
Quoted 5 lines · Kyle McMartin
I submitted series to clean these 3 up as well (but only got a response from the cris folks...) If the other 2 are effectively unmaintained, should I just submit the clean ups to you? (I think there were some build fixes as well, will have to check.)
Nevermind, just saw the rest of the series on linux-arch.
--Kyle
Quoted 3 lines · Kyle McMartin
Quoted 2 lines · Kyle McMartin
I submitted series to clean these 3 up as well (but only got a response from the cris folks...) If the other 2 are effectively unmaintained,
Dammit. Seems they got lost on my side in some mail black hole. I hate redundant work
Quoted 12 lines
Quoted 3 lines
should I just submit the clean ups to you? (I think there were some build fixes as well, will have to check.)
Nevermind, just saw the rest of the series on linux-arch.
--Kyle
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Linus Torvalds
Quoted 4 lines · Thomas Gleixner
Now that rc1 is out, I got reliable information about the remaining users of
__do_IRQ(), which block the removal:arch/cris,
arch/h8300,arch/m32rI'm certainly ok with this series. It would be good to finally get rid of this legacy interface, and there's no longer any reason to hold it up. And getting rid of hundreds of lines of code is good too.
Will wait a day for desperate screams, then collect the incoming acks and push it into git for your consumption.
Thanks,
tglx