Changeset 37
- Timestamp:
- 12/05/98 05:23:52 (15 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 5 modified
-
kernel/busses/i2c-piix4.c (modified) (2 diffs)
-
kernel/compat.h (modified) (1 diff)
-
kernel/include/compat.h (modified) (1 diff)
-
src/compat.h (modified) (1 diff)
-
src/piix4.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-piix4.c
r35 r37 111 111 PIIX4_dev = pci_find_device(PCI_VENDOR_ID_INTEL, 112 112 PCI_DEVICE_ID_INTEL_82371AB_3, PIIX4_dev); 113 while(PIIX4_dev && (PCI_FUNC(PIIX4_dev->devfn) != 3) ;113 while(PIIX4_dev && (PCI_FUNC(PIIX4_dev->devfn) != 3)); 114 114 if(PIIX4_dev == NULL) { 115 115 #else /* LINUX_VERSION_CODE < KERNEL_VERSION(2,1,54) */ … … 195 195 { 196 196 current->state = TASK_INTERRUPTIBLE; 197 current-> timeout = jiffies + amount;198 schedule ();197 current->state = TASK_INTERRUPTIBLE; 198 schedule_timeout(amount); 199 199 } 200 200 -
lm-sensors/trunk/kernel/compat.h
r34 r37 50 50 #endif 51 51 52 /* Add a scheduling fix for the new code in kernel 2.1.127 */ 53 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,127)) 54 #define schedule_timeout(x) ( current->timeout = jiffies + (x), schedule() ) 55 #endif 56 52 57 /* If the new PCI interface is not present, fall back on the old PCI BIOS 53 58 interface. We also define some things to unite both interfaces. Not -
lm-sensors/trunk/kernel/include/compat.h
r34 r37 50 50 #endif 51 51 52 /* Add a scheduling fix for the new code in kernel 2.1.127 */ 53 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,127)) 54 #define schedule_timeout(x) ( current->timeout = jiffies + (x), schedule() ) 55 #endif 56 52 57 /* If the new PCI interface is not present, fall back on the old PCI BIOS 53 58 interface. We also define some things to unite both interfaces. Not -
lm-sensors/trunk/src/compat.h
r34 r37 50 50 #endif 51 51 52 /* Add a scheduling fix for the new code in kernel 2.1.127 */ 53 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,127)) 54 #define schedule_timeout(x) ( current->timeout = jiffies + (x), schedule() ) 55 #endif 56 52 57 /* If the new PCI interface is not present, fall back on the old PCI BIOS 53 58 interface. We also define some things to unite both interfaces. Not -
lm-sensors/trunk/src/piix4.c
r35 r37 111 111 PIIX4_dev = pci_find_device(PCI_VENDOR_ID_INTEL, 112 112 PCI_DEVICE_ID_INTEL_82371AB_3, PIIX4_dev); 113 while(PIIX4_dev && (PCI_FUNC(PIIX4_dev->devfn) != 3) ;113 while(PIIX4_dev && (PCI_FUNC(PIIX4_dev->devfn) != 3)); 114 114 if(PIIX4_dev == NULL) { 115 115 #else /* LINUX_VERSION_CODE < KERNEL_VERSION(2,1,54) */ … … 195 195 { 196 196 current->state = TASK_INTERRUPTIBLE; 197 current-> timeout = jiffies + amount;198 schedule ();197 current->state = TASK_INTERRUPTIBLE; 198 schedule_timeout(amount); 199 199 } 200 200
