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
- Lines: 12
- Date:
Fri Nov 9 14:12:54 2001
- Orig file:
v2.4.14/linux/net/sched/sch_api.c
- Orig date:
Mon Jan 1 09:57:08 2001
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)