Changeset 3654

Show
Ignore:
Timestamp:
07/04/02 02:02:59 (11 years ago)
Author:
mds
Message:

2.5 compatibility as requested by Albert Cranford.

Location:
i2c/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/CHANGES

    r3653 r3654  
    2121  i2c.h: Add defines for SMBus 2.0 
    2222  i2c-algo-8xx.[ch]: Compile updates, Add GPL 
    23   i2c-algo-bit.c: Wait for clock low extension by slow devices 
     23  i2c-algo-bit.c: Wait for clock low extension by slow devices; 
     24                  add cond_resched() for 2.5 kernels     
    2425  i2c-core.c: Add SMBus 2.0 PEC support; change back to 'old' CONFIG names; 
    2526              fix i2c emulated process call 
  • i2c/trunk/kernel/i2c-algo-bit.c

    r3653 r3654  
    120120                        return -ETIMEDOUT; 
    121121                } 
     122#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) 
    122123                if (current->need_resched) 
    123124                        schedule(); 
     125#else 
     126                cond_resched{}; 
     127#endif 
    124128        } 
    125129        DEBSTAT(printk(KERN_DEBUG "needed %ld jiffies\n", jiffies-start));