mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-19 19:40:49 +00:00
(Phil) Fixed a couple 2.1.x issues:
- The schedule() and timeout issue (since 2.1.127 I think) - A syntax error in piix4 (pci func 3 sensing code Frodo wrote) git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@37 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
3e7c6427d0
commit
279eb7c5c0
5 files changed
+21
-6
No files matched your search
@@ -49,6 +49,11 @@
|
||||
#define get_user_data(to,from) get_user(to,from)
|
||||
#endif
|
||||
|
||||
/* Add a scheduling fix for the new code in kernel 2.1.127 */
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,127))
|
||||
#define schedule_timeout(x) ( current->timeout = jiffies + (x), schedule() )
|
||||
#endif
|
||||
|
||||
/* If the new PCI interface is not present, fall back on the old PCI BIOS
|
||||
interface. We also define some things to unite both interfaces. Not
|
||||
very nice, but it works like a charm.
|
||||
|
||||
Reference in new issue
Block a user