Changeset 933
- Timestamp:
- 11/23/00 00:54:39 (8 years ago)
- Author:
- frodo
- Message:
Updated the MUTEX definitions again - they are now guarded by
the horrible
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18))
\
(LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0))
They should now both work with 2.3 kernels (including 2.4 prepatches)
and very new 2.2 kernels (ie. 2.2.18 prepatches)
- Files:
- lm-sensors/trunk/CHANGES (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/adm1021.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/adm1025.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/adm9240.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/bt869.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/ddcmon.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/eeprom.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/gl518sm.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/gl520sm.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/icspll.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/lm75.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/lm78.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/lm80.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/lm87.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/ltc1710.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/matorb.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/maxilife.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/mtp008.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/pcf8574.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/sis5595.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/thmc50.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/via686a.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/w83781d.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CHANGES
r932 r933 19 19 20 20 2.5.5 (2000????) 21 Chip modules (all): Update mutex 21 Chip modules (all): Update mutex definition (works now for new 2.2 kernels) 22 22 File sensors.conf.eg: Add mtp008 entries 23 23 Library: Add mtp008 support lm-sensors/trunk/kernel/chips/adm1021.c
r929 r933 30 30 #include <linux/init.h> 31 31 32 #ifndef init_MUTEX 32 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 33 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 33 34 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 34 35 #endif lm-sensors/trunk/kernel/chips/adm1025.c
r818 r933 39 39 #include <linux/init.h> 40 40 41 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 41 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 42 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 42 43 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 43 44 #endif lm-sensors/trunk/kernel/chips/adm9240.c
r929 r933 64 64 #include <linux/init.h> 65 65 66 #ifndef init_MUTEX 66 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 67 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 67 68 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 68 69 #endif lm-sensors/trunk/kernel/chips/bt869.c
r707 r933 31 31 #include <linux/init.h> 32 32 33 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 33 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 34 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 34 35 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 35 36 #endif lm-sensors/trunk/kernel/chips/ddcmon.c
r923 r933 31 31 #include <linux/init.h> 32 32 33 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 33 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 34 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 34 35 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 35 36 #endif lm-sensors/trunk/kernel/chips/eeprom.c
r929 r933 30 30 #include <linux/init.h> 31 31 32 #ifndef init_MUTEX 32 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 33 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 33 34 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 34 35 #endif lm-sensors/trunk/kernel/chips/gl518sm.c
r929 r933 35 35 #endif 36 36 37 #ifndef init_MUTEX 37 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 38 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 38 39 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 39 40 #endif lm-sensors/trunk/kernel/chips/gl520sm.c
r707 r933 30 30 #include <linux/init.h> 31 31 32 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 32 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 33 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 33 34 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 34 35 #endif lm-sensors/trunk/kernel/chips/icspll.c
r796 r933 40 40 41 41 42 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 42 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 43 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 43 44 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 44 45 #endif lm-sensors/trunk/kernel/chips/lm75.c
r929 r933 29 29 30 30 31 #ifndef init_MUTEX 31 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 32 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 32 33 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 33 34 #endif lm-sensors/trunk/kernel/chips/lm78.c
r929 r933 34 34 #include <linux/init.h> 35 35 36 #ifndef init_MUTEX 36 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 37 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 37 38 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 38 39 #endif lm-sensors/trunk/kernel/chips/lm80.c
r929 r933 35 35 #include <linux/init.h> 36 36 37 #ifndef init_MUTEX 37 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 38 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 38 39 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 39 40 #endif lm-sensors/trunk/kernel/chips/lm87.c
r921 r933 38 38 #include <linux/init.h> 39 39 40 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 40 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 41 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 41 42 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 42 43 #endif lm-sensors/trunk/kernel/chips/ltc1710.c
r929 r933 52 52 53 53 54 #ifndef init_MUTEX 54 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 55 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 55 56 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 56 57 #endif lm-sensors/trunk/kernel/chips/matorb.c
r707 r933 32 32 #include <linux/init.h> 33 33 34 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 34 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 35 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 35 36 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 36 37 #endif lm-sensors/trunk/kernel/chips/maxilife.c
r790 r933 68 68 69 69 70 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 70 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 71 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 71 72 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 72 73 #endif lm-sensors/trunk/kernel/chips/mtp008.c
r911 r933 34 34 #include <linux/init.h> 35 35 36 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 36 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 37 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 37 38 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 38 39 #endif lm-sensors/trunk/kernel/chips/pcf8574.c
r922 r933 49 49 50 50 51 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 51 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 52 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 52 53 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 53 54 #endif lm-sensors/trunk/kernel/chips/sis5595.c
r929 r933 38 38 39 39 40 #ifndef init_MUTEX 40 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 41 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 41 42 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 42 43 #endif lm-sensors/trunk/kernel/chips/thmc50.c
r707 r933 31 31 #include <linux/init.h> 32 32 33 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 33 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 34 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 34 35 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 35 36 #endif lm-sensors/trunk/kernel/chips/via686a.c
r914 r933 45 45 #endif 46 46 47 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 47 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 48 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 48 49 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 49 50 #endif lm-sensors/trunk/kernel/chips/w83781d.c
r929 r933 48 48 #include <linux/init.h> 49 49 50 #ifndef init_MUTEX 50 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 51 (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 51 52 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 52 53 #endif
Download in other formats:
Powered by Trac 0.10.4
By Edgewall Software.Visit the Trac open source project at
http://trac.edgewall.com/
