# i2c-algo-bit.c: Added KERNEL_VERSION check around if (current->need_resched) schedule(); and cond_sched(); --- linux/drivers/i2c/i2c-algo-bit.c.orig 2002-07-05 13:08:27.000000000 -0400 +++ linux/drivers/i2c/i2c-algo-bit.c 2002-07-05 13:09:58.000000000 -0400 @@ -119,7 +119,12 @@ if (time_after_eq(jiffies, start+adap->timeout)) { return -ETIMEDOUT; } +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) + if (current->need_resched) + schedule(); +#else cond_resched(); +#endif } DEBSTAT(printk(KERN_DEBUG "needed %ld jiffies\n", jiffies-start)); #ifdef SLO_IO