]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ISDN Eicon driver: use msleep()
authorArmin Schindler <armin@melware.de>
Mon, 2 Aug 2004 03:30:45 +0000 (20:30 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 2 Aug 2004 03:30:45 +0000 (20:30 -0700)
Author: Armin Schindler, Nishanth Aravamudan

Use kernel provided msleep() instead of own sleep
implementation.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/isdn/hardware/eicon/platform.h

index c38f8718d8c51bdf87a1cda2c7a45792fc4b5c6f..31299feb766088d26e146310c622797b5e28bab6 100644 (file)
@@ -1,4 +1,4 @@
-/* $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
  * 
@@ -214,10 +214,7 @@ void diva_os_free_message_buffer(diva_os_message_buffer_s *dmb);
 */
 static __inline__ void diva_os_sleep(dword mSec)
 {
-       unsigned long timeout = HZ * mSec / 1000 + 1;
-
-       set_current_state(TASK_UNINTERRUPTIBLE);
-       schedule_timeout(timeout);
+       msleep(mSec);
 }
 static __inline__ void diva_os_wait(dword mSec)
 {