Skip to content

Commit

Permalink
cpumask: remove references to struct irqaction's mask field.
Browse files Browse the repository at this point in the history
Impact: cleanup

It's unused, since about 1995.  So remove all initialization of it in
preparation for actually removing the field.

Signed-off-by: Rusty Russell <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
  • Loading branch information
rustyrussell committed Mar 30, 2009
1 parent 9489424 commit 1a8a510
Show file tree
Hide file tree
Showing 43 changed files with 2 additions and 53 deletions.
1 change: 0 additions & 1 deletion arch/cris/arch-v10/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ timer_interrupt(int irq, void *dev_id)
static struct irqaction irq2 = {
.handler = timer_interrupt,
.flags = IRQF_SHARED | IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "timer",
};

Expand Down
1 change: 0 additions & 1 deletion arch/cris/arch-v32/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ static int send_ipi(int vector, int wait, cpumask_t cpu_mask);
static struct irqaction irq_ipi = {
.handler = crisv32_ipi_interrupt,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "ipi",
};

Expand Down
1 change: 0 additions & 1 deletion arch/cris/arch-v32/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ timer_interrupt(int irq, void *dev_id)
static struct irqaction irq_timer = {
.handler = timer_interrupt,
.flags = IRQF_SHARED | IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "timer"
};

Expand Down
4 changes: 0 additions & 4 deletions arch/frv/kernel/irq-mb93091.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,28 +109,24 @@ static struct irqaction fpga_irq[4] = {
[0] = {
.handler = fpga_interrupt,
.flags = IRQF_DISABLED | IRQF_SHARED,
.mask = CPU_MASK_NONE,
.name = "fpga.0",
.dev_id = (void *) 0x0028UL,
},
[1] = {
.handler = fpga_interrupt,
.flags = IRQF_DISABLED | IRQF_SHARED,
.mask = CPU_MASK_NONE,
.name = "fpga.1",
.dev_id = (void *) 0x0050UL,
},
[2] = {
.handler = fpga_interrupt,
.flags = IRQF_DISABLED | IRQF_SHARED,
.mask = CPU_MASK_NONE,
.name = "fpga.2",
.dev_id = (void *) 0x1c00UL,
},
[3] = {
.handler = fpga_interrupt,
.flags = IRQF_DISABLED | IRQF_SHARED,
.mask = CPU_MASK_NONE,
.name = "fpga.3",
.dev_id = (void *) 0x6386UL,
}
Expand Down
1 change: 0 additions & 1 deletion arch/frv/kernel/irq-mb93093.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ static struct irqaction fpga_irq[1] = {
[0] = {
.handler = fpga_interrupt,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "fpga.0",
.dev_id = (void *) 0x0700UL,
}
Expand Down
2 changes: 0 additions & 2 deletions arch/frv/kernel/irq-mb93493.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,12 @@ static struct irqaction mb93493_irq[2] = {
[0] = {
.handler = mb93493_interrupt,
.flags = IRQF_DISABLED | IRQF_SHARED,
.mask = CPU_MASK_NONE,
.name = "mb93493.0",
.dev_id = (void *) __addr_MB93493_IQSR(0),
},
[1] = {
.handler = mb93493_interrupt,
.flags = IRQF_DISABLED | IRQF_SHARED,
.mask = CPU_MASK_NONE,
.name = "mb93493.1",
.dev_id = (void *) __addr_MB93493_IQSR(1),
}
Expand Down
1 change: 0 additions & 1 deletion arch/frv/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ static irqreturn_t timer_interrupt(int irq, void *dummy);
static struct irqaction timer_irq = {
.handler = timer_interrupt,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "timer",
};

Expand Down
1 change: 0 additions & 1 deletion arch/h8300/kernel/timer/itu.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ static struct irqaction itu_irq = {
.name = "itu",
.handler = timer_interrupt,
.flags = IRQF_DISABLED | IRQF_TIMER,
.mask = CPU_MASK_NONE,
};

static const int __initdata divide_rate[] = {1, 2, 4, 8};
Expand Down
1 change: 0 additions & 1 deletion arch/h8300/kernel/timer/timer16.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ static struct irqaction timer16_irq = {
.name = "timer-16",
.handler = timer_interrupt,
.flags = IRQF_DISABLED | IRQF_TIMER,
.mask = CPU_MASK_NONE,
};

static const int __initdata divide_rate[] = {1, 2, 4, 8};
Expand Down
1 change: 0 additions & 1 deletion arch/h8300/kernel/timer/timer8.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ static struct irqaction timer8_irq = {
.name = "timer-8",
.handler = timer_interrupt,
.flags = IRQF_DISABLED | IRQF_TIMER,
.mask = CPU_MASK_NONE,
};

static const int __initdata divide_rate[] = {8, 64, 8192};
Expand Down
1 change: 0 additions & 1 deletion arch/h8300/kernel/timer/tpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ static struct irqaction tpu_irq = {
.name = "tpu",
.handler = timer_interrupt,
.flags = IRQF_DISABLED | IRQF_TIMER,
.mask = CPU_MASK_NONE,
};

const static int __initdata divide_rate[] = {
Expand Down
1 change: 0 additions & 1 deletion arch/m32r/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
static struct irqaction irq0 = {
.handler = timer_interrupt,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "MFT2",
};

Expand Down
1 change: 0 additions & 1 deletion arch/mips/cobalt/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ asmlinkage void plat_irq_dispatch(void)

static struct irqaction cascade = {
.handler = no_action,
.mask = CPU_MASK_NONE,
.name = "cascade",
};

Expand Down
1 change: 0 additions & 1 deletion arch/mips/emma/markeins/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ void emma2rh_gpio_irq_init(void)
static struct irqaction irq_cascade = {
.handler = no_action,
.flags = 0,
.mask = CPU_MASK_NONE,
.name = "cascade",
.dev_id = NULL,
.next = NULL,
Expand Down
1 change: 0 additions & 1 deletion arch/mips/jazz/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ static irqreturn_t r4030_timer_interrupt(int irq, void *dev_id)
static struct irqaction r4030_timer_irqaction = {
.handler = r4030_timer_interrupt,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_CPU0,
.name = "R4030 timer",
};

Expand Down
1 change: 0 additions & 1 deletion arch/mips/kernel/cevt-bcm1480.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ void __cpuinit sb1480_clockevent_init(void)

action->handler = sibyte_counter_handler;
action->flags = IRQF_DISABLED | IRQF_PERCPU;
action->mask = cpumask_of_cpu(cpu);
action->name = name;
action->dev_id = cd;

Expand Down
1 change: 0 additions & 1 deletion arch/mips/kernel/cevt-sb1250.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ void __cpuinit sb1250_clockevent_init(void)

action->handler = sibyte_counter_handler;
action->flags = IRQF_DISABLED | IRQF_PERCPU;
action->mask = cpumask_of_cpu(cpu);
action->name = name;
action->dev_id = cd;

Expand Down
2 changes: 0 additions & 2 deletions arch/mips/kernel/i8253.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
static struct irqaction irq0 = {
.handler = timer_interrupt,
.flags = IRQF_DISABLED | IRQF_NOBALANCING,
.mask = CPU_MASK_NONE,
.name = "timer"
};

Expand All @@ -121,7 +120,6 @@ void __init setup_pit_timer(void)
cd->min_delta_ns = clockevent_delta2ns(0xF, cd);
clockevents_register_device(cd);

irq0.mask = cpumask_of_cpu(cpu);
setup_irq(0, &irq0);
}

Expand Down
1 change: 0 additions & 1 deletion arch/mips/kernel/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ static void init_8259A(int auto_eoi)
*/
static struct irqaction irq2 = {
.handler = no_action,
.mask = CPU_MASK_NONE,
.name = "cascade",
};

Expand Down
1 change: 0 additions & 1 deletion arch/mips/lasat/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ asmlinkage void plat_irq_dispatch(void)

static struct irqaction cascade = {
.handler = no_action,
.mask = CPU_MASK_NONE,
.name = "cascade",
};

Expand Down
1 change: 0 additions & 1 deletion arch/mips/lemote/lm2e/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ asmlinkage void plat_irq_dispatch(void)

static struct irqaction cascade_irqaction = {
.handler = no_action,
.mask = CPU_MASK_NONE,
.name = "cascade",
};

Expand Down
2 changes: 0 additions & 2 deletions arch/mips/sgi-ip32/ip32-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,12 @@ extern irqreturn_t crime_cpuerr_intr(int irq, void *dev_id);
struct irqaction memerr_irq = {
.handler = crime_memerr_intr,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "CRIME memory error",
};

struct irqaction cpuerr_irq = {
.handler = crime_cpuerr_intr,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "CRIME CPU error",
};

Expand Down
3 changes: 2 additions & 1 deletion arch/mips/sni/rm200.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ void sni_rm200_init_8259A(void)
* IRQ2 is cascade interrupt to second interrupt controller
*/
static struct irqaction sni_rm200_irq2 = {
no_action, 0, CPU_MASK_NONE, "cascade", NULL, NULL
.handler = no_action,
.name = "cascade",
};

static struct resource sni_rm200_pic1_resource = {
Expand Down
1 change: 0 additions & 1 deletion arch/mips/vr41xx/common/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ static irq_cascade_t irq_cascade[NR_IRQS] __cacheline_aligned;

static struct irqaction cascade_irqaction = {
.handler = no_action,
.mask = CPU_MASK_NONE,
.name = "cascade",
};

Expand Down
1 change: 0 additions & 1 deletion arch/mn10300/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id);
static struct irqaction timer_irq = {
.handler = timer_interrupt,
.flags = IRQF_DISABLED | IRQF_SHARED | IRQF_TIMER,
.mask = CPU_MASK_NONE,
.name = "timer",
};

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/mpc85xx_cds.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ static irqreturn_t mpc85xx_8259_cascade_action(int irq, void *dev_id)
static struct irqaction mpc85xxcds_8259_irqaction = {
.handler = mpc85xx_8259_cascade_action,
.flags = IRQF_SHARED,
.mask = CPU_MASK_NONE,
.name = "8259 cascade",
};
#endif /* PPC_I8259 */
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/8xx/m8xx_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ static irqreturn_t timebase_interrupt(int irq, void *dev)

static struct irqaction tbint_irqaction = {
.handler = timebase_interrupt,
.mask = CPU_MASK_NONE,
.name = "tbint",
};

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/chrp/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,6 @@ static void __init chrp_find_openpic(void)
#if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_XMON)
static struct irqaction xmon_irqaction = {
.handler = xmon_irq,
.mask = CPU_MASK_NONE,
.name = "XMON break",
};
#endif
Expand Down
2 changes: 0 additions & 2 deletions arch/powerpc/platforms/powermac/pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,13 @@ static unsigned int pmac_pic_get_irq(void)
static struct irqaction xmon_action = {
.handler = xmon_irq,
.flags = 0,
.mask = CPU_MASK_NONE,
.name = "NMI - XMON"
};
#endif

static struct irqaction gatwick_cascade_action = {
.handler = gatwick_action,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "cascade",
};

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/powermac/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ static void __init psurge_dual_sync_tb(int cpu_nr)
static struct irqaction psurge_irqaction = {
.handler = psurge_primary_intr,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "primary IPI",
};

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/sysdev/cpm1.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ static irqreturn_t cpm_error_interrupt(int irq, void *dev)

static struct irqaction cpm_error_irqaction = {
.handler = cpm_error_interrupt,
.mask = CPU_MASK_NONE,
.name = "error",
};

Expand Down
1 change: 0 additions & 1 deletion arch/sh/kernel/time_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
static struct irqaction irq0 = {
.handler = timer_interrupt,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "timer",
};

Expand Down
1 change: 0 additions & 1 deletion arch/sh/kernel/timers/timer-cmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ static struct irqaction cmt_irq = {
.name = "timer",
.handler = cmt_timer_interrupt,
.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
.mask = CPU_MASK_NONE,
};

static void cmt_clk_init(struct clk *clk)
Expand Down
1 change: 0 additions & 1 deletion arch/sh/kernel/timers/timer-mtu2.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ static struct irqaction mtu2_irq = {
.name = "timer",
.handler = mtu2_timer_interrupt,
.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
.mask = CPU_MASK_NONE,
};

static unsigned int divisors[] = { 1, 4, 16, 64, 1, 1, 256 };
Expand Down
1 change: 0 additions & 1 deletion arch/sh/kernel/timers/timer-tmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ static struct irqaction tmu0_irq = {
.name = "periodic/oneshot timer",
.handler = tmu_timer_interrupt,
.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
.mask = CPU_MASK_NONE,
};

static void __init tmu_clk_init(struct clk *clk)
Expand Down
2 changes: 0 additions & 2 deletions arch/sparc/kernel/irq_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ static int request_fast_irq(unsigned int irq,
flush_cache_all();

action->flags = irqflags;
cpus_clear(action->mask);
action->name = devname;
action->dev_id = NULL;
action->next = NULL;
Expand Down Expand Up @@ -574,7 +573,6 @@ int request_irq(unsigned int irq,

action->handler = handler;
action->flags = irqflags;
cpus_clear(action->mask);
action->name = devname;
action->next = NULL;
action->dev_id = dev_id;
Expand Down
1 change: 0 additions & 1 deletion arch/sparc/kernel/sun4d_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ int sun4d_request_irq(unsigned int irq,

action->handler = handler;
action->flags = irqflags;
cpus_clear(action->mask);
action->name = devname;
action->next = NULL;
action->dev_id = dev_id;
Expand Down
2 changes: 0 additions & 2 deletions arch/x86/kernel/irqinit_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ static irqreturn_t math_error_irq(int cpl, void *dev_id)
*/
static struct irqaction fpu_irq = {
.handler = math_error_irq,
.mask = CPU_MASK_NONE,
.name = "fpu",
};

Expand Down Expand Up @@ -83,7 +82,6 @@ void __init init_ISA_irqs(void)
*/
static struct irqaction irq2 = {
.handler = no_action,
.mask = CPU_MASK_NONE,
.name = "cascade",
};

Expand Down
1 change: 0 additions & 1 deletion arch/x86/kernel/irqinit_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

static struct irqaction irq2 = {
.handler = no_action,
.mask = CPU_MASK_NONE,
.name = "cascade",
};
DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
Expand Down
1 change: 0 additions & 1 deletion arch/x86/kernel/mfgpt_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ static irqreturn_t mfgpt_tick(int irq, void *dev_id)
static struct irqaction mfgptirq = {
.handler = mfgpt_tick,
.flags = IRQF_DISABLED | IRQF_NOBALANCING,
.mask = CPU_MASK_NONE,
.name = "mfgpt-timer"
};

Expand Down
1 change: 0 additions & 1 deletion arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,6 @@ void __init x86_quirk_trap_init(void)
static struct irqaction irq0 = {
.handler = timer_interrupt,
.flags = IRQF_DISABLED | IRQF_NOBALANCING | IRQF_IRQPOLL | IRQF_TIMER,
.mask = CPU_MASK_NONE,
.name = "timer"
};

Expand Down
Loading

0 comments on commit 1a8a510

Please sign in to comment.