patch-2.4.15 linux/net/sched/sch_api.c

Next file: linux/scripts/Lindent
Previous file: linux/net/netlink/netlink_dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/net/sched/sch_api.c linux/net/sched/sch_api.c
@@ -1145,8 +1145,10 @@
 	stop = jiffies + HZ/10;
 	PSCHED_GET_TIME(stamp);
 	do_gettimeofday(&tv);
-	while (time_before(jiffies, stop))
+	while (time_before(jiffies, stop)) {
 		barrier();
+		cpu_relax();
+	}
 	PSCHED_GET_TIME(stamp1);
 	do_gettimeofday(&tv1);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)