Changeset 1936 for lm-sensors/trunk/kernel/busses/i2c-nforce2.c
- Timestamp:
- 08/03/03 07:11:58 (10 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/busses/i2c-nforce2.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-nforce2.c
r1912 r1936 113 113 unsigned short flags, char read_write, 114 114 u8 command, int size, union i2c_smbus_data *data); 115 #if 0116 static void nforce2_do_pause(unsigned int amount);117 #endif118 115 /* 119 116 static int nforce2_block_transaction(union i2c_smbus_data *data, … … 129 126 .functionality = nforce2_func, 130 127 }; 131 132 133 134 #if 0135 /* Internally used pause function */136 void nforce2_do_pause(unsigned int amount)137 {138 current->state = TASK_INTERRUPTIBLE;139 schedule_timeout(amount);140 }141 #endif142 128 143 129 /* Return -1 on error. See smbus.h for more information */ … … 251 237 #if 0 252 238 do { 253 nforce2_do_pause(1);239 i2c_delay(1); 254 240 temp = inb_p(NVIDIA_SMB_STS); 255 241 } while (((temp & NVIDIA_SMB_STS_DONE) == 0) && (timeout++ < MAX_TIMEOUT)); … … 260 246 } 261 247 if (~temp & NVIDIA_SMB_STS_DONE) { 262 current->state = TASK_INTERRUPTIBLE; 263 schedule_timeout(HZ/100); 248 i2c_delay(HZ/100); 264 249 temp = inb_p(NVIDIA_SMB_STS); 265 250 }
