use schedule_timeout() instead of yield()
Subsystems (2)
PATCH 1/1 use schedule_timeout() instead of yield()
thanks to Felipe W Damasio hint rediffed.
patch is on top of linux-2.6.6-rc2
yield() removes process from active array into expired array, better just yield the CPU for a bit.
tested on my laptop with a sis900.
a++ maks
drivers/net/sis900.c +2 -1
@@ -600,7 +600,8 @@if (status &MII_STAT_LINK ){while (poll_bit) { -yield (); +set_current_state (TASK_UNINTERRUPTIBLE ); +schedule_timeout (HZ /100 ); poll_bit ^= (mdio_read (net_dev, sis_priv->cur_phy,MII_STATUS ) & poll_bit);if (time_after_eq (jiffies, timeout)) {
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors