mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-23 20:11:42 +00:00
Added utility function i2c_delay(1), to replace various "do_pause"
(mmh) functions in bus drivers. Backported from the 2.6 work of Greg KH. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1936 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
e49b5486aa
commit
e035136982
11 files changed
+18
-101
No files matched your search
@@ -281,8 +281,7 @@ s32 amd8111_access(struct i2c_adapter * adap, u16 addr, unsigned short flags,
|
||||
}
|
||||
|
||||
if (~temp[0] & AMD_SMB_STS_DONE) {
|
||||
current->state = TASK_INTERRUPTIBLE;
|
||||
schedule_timeout(HZ/100);
|
||||
i2c_delay(HZ/100);
|
||||
amd_ec_read(smbus, AMD_SMB_STS, temp + 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user