Re: [PATCH] watchdog: touch_nmi_watchdog should only touch localcpu not every one

From: Don Zickus
Date: Mon Nov 08 2010 - 08:39:43 EST


On Sun, Nov 07, 2010 at 11:09:11PM +0100, Frederic Weisbecker wrote:
> > + /*
> > + * Using __raw here because some code paths have
> > + * preemption enabled. If preemption is enabled
> > + * then interrupts should be enabled too, in which
> > + * case we shouldn't have to worry about the watchdog
> > + * going off.
> > + */
> > + __raw_get_cpu_var(watchdog_nmi_touch) = true;
> > +
> > + touch_softlockup_watchdog();
> > +}
> > +EXPORT_SYMBOL(touch_nmi_watchdog);
>
>
>
> Did the old watchdog also touched every CPUs?

Yeah, unfortunately.

Cheers,
Don
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/