This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / isdn / hardware / eicon / platform.h
index 31299fe..c38f871 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: platform.h,v 1.37.4.1 2004/07/28 14:47:21 armin Exp $
+/* $Id: platform.h,v 1.37 2004/03/20 17:44:29 armin Exp $
  *
  * platform.h
  * 
@@ -214,7 +214,10 @@ void diva_os_free_message_buffer(diva_os_message_buffer_s *dmb);
 */
 static __inline__ void diva_os_sleep(dword mSec)
 {
-       msleep(mSec);
+       unsigned long timeout = HZ * mSec / 1000 + 1;
+
+       set_current_state(TASK_UNINTERRUPTIBLE);
+       schedule_timeout(timeout);
 }
 static __inline__ void diva_os_wait(dword mSec)
 {