diff options
| author | Armin Schindler <armin@melware.de> | 2004-08-01 20:30:45 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-01 20:30:45 -0700 |
| commit | b0b6a9b776df159db5759b669a4bd6c73f91a5a4 (patch) | |
| tree | f63039cb0cbcba9d70d2df998f55841e57dcc4ad | |
| parent | d9f5b4d57c3c01ff590cb76cc02b36003652c014 (diff) | |
[PATCH] ISDN Eicon driver: use msleep()
Author: Armin Schindler, Nishanth Aravamudan
Use kernel provided msleep() instead of own sleep
implementation.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | drivers/isdn/hardware/eicon/platform.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/isdn/hardware/eicon/platform.h b/drivers/isdn/hardware/eicon/platform.h index c38f8718d8c5..31299feb7660 100644 --- a/drivers/isdn/hardware/eicon/platform.h +++ b/drivers/isdn/hardware/eicon/platform.h @@ -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) { |
