Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4:Contrib
tp_smapi-kmp
kernel_2_6_37-declare-mutex.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kernel_2_6_37-declare-mutex.diff of Package tp_smapi-kmp
diff --git a/thinkpad_ec.c b/thinkpad_ec.c --- a/thinkpad_ec.c +++ b/thinkpad_ec.c @@ -88,7 +88,11 @@ static u64 prefetch_jiffies; #define TPC_PREFETCH_JUNK (INITIAL_JIFFIES+1) /* Ignore prefetch */ /* Locking: */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) static DECLARE_MUTEX(thinkpad_ec_mutex); +#else +static DEFINE_SEMAPHORE(thinkpad_ec_mutex); +#endif /* Kludge in case the ACPI DSDT reserves the ports we need. */ static int force_io; /* Willing to do IO to ports we couldn't reserve? */ diff --git a/tp_smapi.c b/tp_smapi.c --- a/tp_smapi.c +++ b/tp_smapi.c @@ -109,7 +109,11 @@ static struct { u8 rc; char *msg; int re #define SMAPI_PORT2 0x4F /* fixed port, meaning unclear */ static unsigned short smapi_port; /* APM control port, normally 0xB2 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) static DECLARE_MUTEX(smapi_mutex); +#else +static DEFINE_SEMAPHORE(smapi_mutex); +#endif /** * find_smapi_port - read SMAPI port from NVRAM
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor