diff options
Diffstat (limited to 'net-dialup/e5520pc/files')
-rw-r--r-- | net-dialup/e5520pc/files/digest-e5520pc-0.1-r1 | 3 | ||||
-rw-r--r-- | net-dialup/e5520pc/files/e5520pc_kernel-2.6.24.diff | 46 |
2 files changed, 49 insertions, 0 deletions
diff --git a/net-dialup/e5520pc/files/digest-e5520pc-0.1-r1 b/net-dialup/e5520pc/files/digest-e5520pc-0.1-r1 new file mode 100644 index 000000000000..8995f0648ab5 --- /dev/null +++ b/net-dialup/e5520pc/files/digest-e5520pc-0.1-r1 @@ -0,0 +1,3 @@ +MD5 11efcd3345ba368d9104ce87bf127328 e5520pc-0.1-0.src.rpm 316463 +RMD160 3a58aa54c6903929b0f268784a3e0816a9654295 e5520pc-0.1-0.src.rpm 316463 +SHA256 898f5a0a9a14586012ec03a46cbb5d02d4012ed1c1edbcd828f2b975eb1b3438 e5520pc-0.1-0.src.rpm 316463 diff --git a/net-dialup/e5520pc/files/e5520pc_kernel-2.6.24.diff b/net-dialup/e5520pc/files/e5520pc_kernel-2.6.24.diff new file mode 100644 index 000000000000..a5f2043682be --- /dev/null +++ b/net-dialup/e5520pc/files/e5520pc_kernel-2.6.24.diff @@ -0,0 +1,46 @@ +--- src/driver.c.orig 2008-01-30 02:07:00.000000000 +0100 ++++ src/driver.c 2008-01-30 02:07:00.000000000 +0100 +@@ -91,8 +91,12 @@ + static DECLARE_WAIT_QUEUE_HEAD(sched_wait); + static DECLARE_WAIT_QUEUE_HEAD(tx_wait); + static DECLARE_WAIT_QUEUE_HEAD(rx_wait); ++static DECLARE_COMPLETION(hotplug); /* New DECLARE, <arnd.feldmueller@web.de> */ ++static DECLARE_COMPLETION(notify); /* New DECLARE, <arnd.feldmueller@web.de> */ ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) + static DECLARE_MUTEX_LOCKED(hotplug); + static DECLARE_MUTEX_LOCKED(notify); ++#endif + + /*---------------------------------------------------------------------------*\ + \*---------------------------------------------------------------------------*/ +@@ -754,7 +758,7 @@ + close_func = func; + close_data = data; + +- INIT_WORK (&closing_work, closing_worker); ++ INIT_WORK (&closing_work, (work_func_t)closing_worker); + schedule_work (&closing_work); + LOG("Worker scheduled.\n"); + } /* start_closing_worker */ +@@ -1171,7 +1175,10 @@ + } + } + LOG("Scheduler thread stopped.\n"); ++ complete(&hotplug); /* Complete Thread Sync here <arnd.feldmueller@web.de> */ ++ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) + up (&hotplug); ++ #endif + return 0; + } /* scheduler */ + +@@ -1206,7 +1213,10 @@ + wake_up_interruptible (&wait); + } + LOG("Scheduler thread signalled, waiting...\n"); ++ wait_for_completion(&hotplug); /* Wait for complete Thread Sync <arnd.feldmueller@web.de> */ ++ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) + down (&hotplug); ++ #endif + LOG("Scheduler thread[%d] terminated.\n", thread_pid); + } + thread_pid = -1; |