Show
Ignore:
Timestamp:
11/23/00 00:54:39 (13 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:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/via686a.c

    r914 r933  
    4545#endif 
    4646 
    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)) 
    4849#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    4950#endif