logo       

[Kernel-janitors] Re: [PATCH] eicon/platform: replace schedule_timeout() wi: msg#00265

Subject: [Kernel-janitors] Re: [PATCH] eicon/platform: replace schedule_timeout() with msleep()
On Fri, 23 Jul 2004, Nishanth Aravamudan wrote:
> 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.

What is the reason for your patches ?

Most of the drivers code is 'common-' code, used in other OSes too.
So to maintain all of this, wrapper functions like diva_os_*() make it
easier and I don't like to change that.

If necessary, the inline function itself should be changed, not the main
code.

Armin


> 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>