Skip to content

Commit 6714465

Browse files
KAGA-KOKOLinus Torvalds
authored andcommitted
[PATCH] irq-flags: POWERPC: Use the new IRQF_ constants
Use the new IRQF_ constants and remove the SA_INTERRUPT define Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: "David S. Miller" <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 733ea86 commit 6714465

9 files changed

Lines changed: 25 additions & 21 deletions

File tree

‎arch/powerpc/platforms/cell/interrupt.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,11 @@ static void iic_request_ipi(int ipi, const char *name)
304304
int irq;
305305

306306
irq = iic_ipi_to_irq(ipi);
307-
/* IPIs are marked SA_INTERRUPT as they must run with irqs
307+
/* IPIs are marked IRQF_DISABLED as they must run with irqs
308308
* disabled */
309309
get_irq_desc(irq)->chip = &iic_pic;
310310
get_irq_desc(irq)->status |= IRQ_PER_CPU;
311-
request_irq(irq, iic_ipi_action, SA_INTERRUPT, name, NULL);
311+
request_irq(irq, iic_ipi_action, IRQF_DISABLED, name, NULL);
312312
}
313313

314314
void iic_request_IPIs(void)

‎arch/powerpc/platforms/cell/spu_base.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,19 +274,19 @@ spu_request_irqs(struct spu *spu)
274274

275275
snprintf(spu->irq_c0, sizeof (spu->irq_c0), "spe%02d.0", spu->number);
276276
ret = request_irq(irq_base + spu->isrc,
277-
spu_irq_class_0, SA_INTERRUPT, spu->irq_c0, spu);
277+
spu_irq_class_0, IRQF_DISABLED, spu->irq_c0, spu);
278278
if (ret)
279279
goto out;
280280

281281
snprintf(spu->irq_c1, sizeof (spu->irq_c1), "spe%02d.1", spu->number);
282282
ret = request_irq(irq_base + IIC_CLASS_STRIDE + spu->isrc,
283-
spu_irq_class_1, SA_INTERRUPT, spu->irq_c1, spu);
283+
spu_irq_class_1, IRQF_DISABLED, spu->irq_c1, spu);
284284
if (ret)
285285
goto out1;
286286

287287
snprintf(spu->irq_c2, sizeof (spu->irq_c2), "spe%02d.2", spu->number);
288288
ret = request_irq(irq_base + 2*IIC_CLASS_STRIDE + spu->isrc,
289-
spu_irq_class_2, SA_INTERRUPT, spu->irq_c2, spu);
289+
spu_irq_class_2, IRQF_DISABLED, spu->irq_c2, spu);
290290
if (ret)
291291
goto out2;
292292
goto out;

‎arch/powerpc/platforms/powermac/pic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ static struct irqaction xmon_action = {
381381

382382
static struct irqaction gatwick_cascade_action = {
383383
.handler = gatwick_action,
384-
.flags = SA_INTERRUPT,
384+
.flags = IRQF_DISABLED,
385385
.mask = CPU_MASK_NONE,
386386
.name = "cascade",
387387
};

‎arch/powerpc/platforms/powermac/smp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ static void __init psurge_dual_sync_tb(int cpu_nr)
377377

378378
static struct irqaction psurge_irqaction = {
379379
.handler = psurge_primary_intr,
380-
.flags = SA_INTERRUPT,
380+
.flags = IRQF_DISABLED,
381381
.mask = CPU_MASK_NONE,
382382
.name = "primary IPI",
383383
};

‎arch/powerpc/platforms/pseries/xics.c‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static struct radix_tree_root irq_map = RADIX_TREE_INIT(GFP_ATOMIC);
5959

6060
/*
6161
* Mark IPIs as higher priority so we can take them inside interrupts that
62-
* arent marked SA_INTERRUPT
62+
* arent marked IRQF_DISABLED
6363
*/
6464
#define IPI_PRIORITY 4
6565

@@ -586,9 +586,12 @@ void xics_request_IPIs(void)
586586
{
587587
virt_irq_to_real_map[XICS_IPI] = XICS_IPI;
588588

589-
/* IPIs are marked SA_INTERRUPT as they must run with irqs disabled */
590-
request_irq(irq_offset_up(XICS_IPI), xics_ipi_action, SA_INTERRUPT,
591-
"IPI", NULL);
589+
/*
590+
* IPIs are marked IRQF_DISABLED as they must run with irqs
591+
* disabled
592+
*/
593+
request_irq(irq_offset_up(XICS_IPI), xics_ipi_action,
594+
IRQF_DISABLED, "IPI", NULL);
592595
get_irq_desc(irq_offset_up(XICS_IPI))->status |= IRQ_PER_CPU;
593596
}
594597
#endif

‎arch/powerpc/sysdev/i8259.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static struct resource pic_edgectrl_iores = {
167167

168168
static struct irqaction i8259_irqaction = {
169169
.handler = no_action,
170-
.flags = SA_INTERRUPT,
170+
.flags = IRQF_DISABLED,
171171
.mask = CPU_MASK_NONE,
172172
.name = "82c59 secondary cascade",
173173
};

‎arch/powerpc/sysdev/mpic.c‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ static void mpic_end_ipi(unsigned int irq)
540540
* IPIs are marked IRQ_PER_CPU. This has the side effect of
541541
* preventing the IRQ_PENDING/IRQ_INPROGRESS logic from
542542
* applying to them. We EOI them late to avoid re-entering.
543-
* We mark IPI's with SA_INTERRUPT as they must run with
543+
* We mark IPI's with IRQF_DISABLED as they must run with
544544
* irqs disabled.
545545
*/
546546
mpic_eoi(mpic);
@@ -1027,14 +1027,17 @@ void mpic_request_ipis(void)
10271027

10281028
printk("requesting IPIs ... \n");
10291029

1030-
/* IPIs are marked SA_INTERRUPT as they must run with irqs disabled */
1031-
request_irq(mpic->ipi_offset+0, mpic_ipi_action, SA_INTERRUPT,
1030+
/*
1031+
* IPIs are marked IRQF_DISABLED as they must run with irqs
1032+
* disabled
1033+
*/
1034+
request_irq(mpic->ipi_offset+0, mpic_ipi_action, IRQF_DISABLED,
10321035
"IPI0 (call function)", mpic);
1033-
request_irq(mpic->ipi_offset+1, mpic_ipi_action, SA_INTERRUPT,
1036+
request_irq(mpic->ipi_offset+1, mpic_ipi_action, IRQF_DISABLED,
10341037
"IPI1 (reschedule)", mpic);
1035-
request_irq(mpic->ipi_offset+2, mpic_ipi_action, SA_INTERRUPT,
1038+
request_irq(mpic->ipi_offset+2, mpic_ipi_action, IRQF_DISABLED,
10361039
"IPI2 (unused)", mpic);
1037-
request_irq(mpic->ipi_offset+3, mpic_ipi_action, SA_INTERRUPT,
1040+
request_irq(mpic->ipi_offset+3, mpic_ipi_action, IRQF_DISABLED,
10381041
"IPI3 (debugger break)", mpic);
10391042

10401043
printk("IPIs requested... \n");

‎include/asm-powerpc/floppy.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define fd_disable_irq() disable_irq(FLOPPY_IRQ)
2828
#define fd_cacheflush(addr,size) /* nothing */
2929
#define fd_request_irq() request_irq(FLOPPY_IRQ, floppy_interrupt, \
30-
SA_INTERRUPT, "floppy", NULL)
30+
IRQF_DISABLED, "floppy", NULL)
3131
#define fd_free_irq() free_irq(FLOPPY_IRQ, NULL);
3232

3333
#ifdef CONFIG_PCI

‎include/asm-powerpc/signal.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ typedef struct {
6363
* SA_FLAGS values:
6464
*
6565
* SA_ONSTACK is not currently supported, but will allow sigaltstack(2).
66-
* SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
6766
* SA_RESTART flag to get restarting signals (which were the default long ago)
6867
* SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
6968
* SA_RESETHAND clears the handler when the signal is delivered.
@@ -83,7 +82,6 @@ typedef struct {
8382

8483
#define SA_NOMASK SA_NODEFER
8584
#define SA_ONESHOT SA_RESETHAND
86-
#define SA_INTERRUPT 0x20000000u /* dummy -- ignored */
8785

8886
#define SA_RESTORER 0x04000000U
8987

0 commit comments

Comments
 (0)