Re: [patch] IDE: Touch NMI watchdog during resume from STR

Michal Schmidt
2006-07-13T17:33:55Z

Andi Kleen wrote:
> Michal Schmidt <xschmi00@stud.feec.vutbr.cz> writes:
>> if (stat == 0xff)
>> return -ENODEV;
>> touch_softlockup_watchdog();
>> + touch_nmi_watchdog();
> You can remove the touch_softlock_watchdog then. It's implied in
> touch_nmi_watchdog

I don't think that's always true. There are architectures where
touch_nmi_watchdog is a NOP. This is in include/linux/nmi.h:

#ifdef ARCH_HAS_NMI_WATCHDOG
extern void touch_nmi_watchdog(void);
#else
# define touch_nmi_watchdog() do { } while(0)
#endif

Michal