logo       

[Kernel-janitors] [PATCH] eicon/platform: replace schedule_timeout() with m: msg#00240

Subject: [Kernel-janitors] [PATCH] eicon/platform: replace schedule_timeout() with msleep()
I would appreciate any comments from the janitors list.

Thanks,
Nish


Depends-on: Patches to eicon/capifunc, io, mntfunc, os_4bri, os_bri,
os_pri, which replace invocations of diva_os_sleep() and diva_os_wait()
with msleep() and mdelay() respectively. Will not compile without those
patches.

Applys-to: 2.6.7

Description: Replace diva_os_sleep() with msleep() and diva_os_wait()
with mdelay() in all instances. 

Signed-off-by: Nishanth Aravamudan <nacc@xxxxxxxxxx>


--- linux-vanilla/drivers/isdn/hardware/eicon/platform.h        2004-06-16 
05:19:43.000000000 +0000
+++ linux-dev/drivers/isdn/hardware/eicon/platform.h    2004-07-02 
18:09:08.000000000 +0000
@@ -210,21 +210,6 @@ void diva_os_free_message_buffer(diva_os
 #define DIVA_MESSAGE_BUFFER_DATA(x) x->data
 
 /*
-** mSeconds waiting
-*/
-static __inline__ void diva_os_sleep(dword mSec)
-{
-       unsigned long timeout = HZ * mSec / 1000 + 1;
-
-       set_current_state(TASK_UNINTERRUPTIBLE);
-       schedule_timeout(timeout);
-}
-static __inline__ void diva_os_wait(dword mSec)
-{
-       mdelay(mSec);
-}
-
-/*
 **  PCI Configuration space access
 */
 void PCIwrite (byte bus, byte func, int offset, void* data, int length, void* 
pci_dev_handle);
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@xxxxxxxxxxxxxx
http://lists.osdl.org/mailman/listinfo/kernel-janitors
<Prev in Thread] Current Thread [Next in Thread>