Skip to contentSkip to conversation

pktgen: nmi watchdog keep alive

PATCH In review Stephen Hemminger 1 participant 1 message Sep 20, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 pktgen: nmi watchdog keep alive

If pktgen gets really busy it takes up all the CPU, and can starve the NMI thread and cause system reset.

net/core/pktgen.c +2 -0
@@ -136,6 +136,7 @@
 #include <linux/delay.h>
 #include <linux/timer.h>
 #include <linux/list.h>
+#include <linux/nmi.h>
 #include <linux/init.h>
 #include <linux/skbuff.h>
 #include <linux/netdevice.h>
@@ -3369,6 +3370,7 @@ static void idle(struct pktgen_dev *pkt_
 {
 	ktime_t idle_start = ktime_now();
 
+	touch_nmi_watchdog();
 	if (need_resched())
 		schedule();
 	else