Skip to content

Commit fecf066

Browse files
committed
sh: Disable IRQ balancing for timer and IPI IRQs.
Make sure that the timer IRQs and IPIs aren't enabled for IRQ balancing. IPIs are disabled as a result of being percpu while the timers simply disable balancing outright. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 43b8774 commit fecf066

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

‎arch/sh/kernel/cpu/sh4a/smp-shx3.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ void __init plat_prepare_cpus(unsigned int max_cpus)
7272
BUILD_BUG_ON(SMP_MSG_NR >= 8);
7373

7474
for (i = 0; i < SMP_MSG_NR; i++)
75-
request_irq(104 + i, ipi_interrupt_handler, IRQF_DISABLED,
76-
"IPI", (void *)(long)i);
75+
request_irq(104 + i, ipi_interrupt_handler,
76+
IRQF_DISABLED | IRQF_PERCPU, "IPI", (void *)(long)i);
7777
}
7878

7979
void plat_start_cpu(unsigned int cpu, unsigned long entry_point)

‎drivers/clocksource/sh_cmt.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,8 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev)
605605
p->irqaction.name = dev_name(&p->pdev->dev);
606606
p->irqaction.handler = sh_cmt_interrupt;
607607
p->irqaction.dev_id = p;
608-
p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL;
608+
p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | \
609+
IRQF_IRQPOLL | IRQF_NOBALANCING;
609610

610611
/* get hold of clock */
611612
p->clk = clk_get(&p->pdev->dev, "cmt_fck");

‎drivers/clocksource/sh_mtu2.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ static int sh_mtu2_setup(struct sh_mtu2_priv *p, struct platform_device *pdev)
280280
p->irqaction.handler = sh_mtu2_interrupt;
281281
p->irqaction.dev_id = p;
282282
p->irqaction.irq = irq;
283-
p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL;
283+
p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | \
284+
IRQF_IRQPOLL | IRQF_NOBALANCING;
284285

285286
/* get hold of clock */
286287
p->clk = clk_get(&p->pdev->dev, "mtu2_fck");

‎drivers/clocksource/sh_tmu.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@ static int sh_tmu_setup(struct sh_tmu_priv *p, struct platform_device *pdev)
384384
p->irqaction.handler = sh_tmu_interrupt;
385385
p->irqaction.dev_id = p;
386386
p->irqaction.irq = irq;
387-
p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL;
387+
p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | \
388+
IRQF_IRQPOLL | IRQF_NOBALANCING;
388389

389390
/* get hold of clock */
390391
p->clk = clk_get(&p->pdev->dev, "tmu_fck");

0 commit comments

Comments
 (0)