Skip to content

Commit

Permalink
watchdog: Octeon: Mark octeon_wdt interrupt as IRQF_NO_THREAD
Browse files Browse the repository at this point in the history
This is to exclude it from force threading to allow RT patch set to work.

The watchdog timers are per-CPU and the addresses of register that reset
the timer are calculated based on the current CPU.  Therefore we cannot
allow it to run on a thread on a different CPU.  Also we only do a
single register write, which is much faster than scheduling a handler
thread.

And while on this line remove IRQF_DISABLED as this flag is a NOP.

Signed-off-by: Venkat Subbiah<venkat.subbiah@cavium.com>
Acked-by: David Daney<david.daney@cavium.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Venkat Subbiah authored and Wim Van Sebroeck committed Nov 5, 2011
1 parent cef153a commit 47bfd05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/octeon-wdt-main.c
Expand Up @@ -402,7 +402,7 @@ static void octeon_wdt_setup_interrupt(int cpu)
irq = OCTEON_IRQ_WDOG0 + core;

if (request_irq(irq, octeon_wdt_poke_irq,
IRQF_DISABLED, "octeon_wdt", octeon_wdt_poke_irq))
IRQF_NO_THREAD, "octeon_wdt", octeon_wdt_poke_irq))
panic("octeon_wdt: Couldn't obtain irq %d", irq);

cpumask_set_cpu(cpu, &irq_enabled_cpus);
Expand Down

0 comments on commit 47bfd05

Please sign in to comment.