Commit b0b6a9b7 authored by Armin Schindler's avatar Armin Schindler Committed by Linus Torvalds

[PATCH] ISDN Eicon driver: use msleep()

Author: Armin Schindler, Nishanth Aravamudan

Use kernel provided msleep() instead of own sleep
implementation.
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d9f5b4d5
/* $Id: platform.h,v 1.37 2004/03/20 17:44:29 armin Exp $ /* $Id: platform.h,v 1.37.4.1 2004/07/28 14:47:21 armin Exp $
* *
* platform.h * platform.h
* *
...@@ -214,10 +214,7 @@ void diva_os_free_message_buffer(diva_os_message_buffer_s *dmb); ...@@ -214,10 +214,7 @@ void diva_os_free_message_buffer(diva_os_message_buffer_s *dmb);
*/ */
static __inline__ void diva_os_sleep(dword mSec) static __inline__ void diva_os_sleep(dword mSec)
{ {
unsigned long timeout = HZ * mSec / 1000 + 1; msleep(mSec);
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(timeout);
} }
static __inline__ void diva_os_wait(dword mSec) static __inline__ void diva_os_wait(dword mSec)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment