All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Aravamudan <nacc@us.ibm.com>
To: kernel-janitors@vger.kernel.org
Subject: [Kernel-janitors] [PATCH] eicon/os_bri: replace schedule_timeout()
Date: Fri, 23 Jul 2004 17:42:39 +0000	[thread overview]
Message-ID: <20040723174239.GI1911@us.ibm.com> (raw)
In-Reply-To: <20040723174006.GE1911@us.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 1765 bytes --]

I would appreciate any comments from the janitors list.

Thanks,
Nish



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@us.ibm.com>


--- linux-vanilla/drivers/isdn/hardware/eicon/os_bri.c	2004-06-16 05:18:57.000000000 +0000
+++ linux-dev/drivers/isdn/hardware/eicon/os_bri.c	2004-07-02 18:07:28.000000000 +0000
@@ -525,7 +525,7 @@ static int diva_bri_reset_adapter(PISDN_
 			 IoAdapter->ANum)) return (-1);
 	}
 	(*(IoAdapter->rstFnc)) (IoAdapter);
-	diva_os_wait(100);
+	mdelay(100);
 	Port = DIVA_OS_MEM_ATTACH_PORT(IoAdapter);
 	addrHi = Port +
 	    ((IoAdapter->Properties.Bus == BUS_PCI) ? M_PCI_ADDRH : ADDRH);
@@ -546,7 +546,7 @@ static int diva_bri_reset_adapter(PISDN_
 		       BRI_SHARED_RAM_SIZE) >> 16));
 	outppw(addrLo, 0);
 	for (i = 0; i < 0x8000; outppw(ioaddr, 0), ++i);
-	diva_os_wait(100);
+	mdelay(100);
 
 	/*
 	   clear signature
@@ -679,7 +679,7 @@ diva_bri_start_adapter(PISDN_ADAPTER IoA
 	   wait for signature (max. 3 seconds)
 	 */
 	for (i = 0; i < 300; ++i) {
-		diva_os_wait(10);
+		mdelay(10);
 		outpp(addrHi,
 		      (byte) (
 			      (IoAdapter->MemoryBase +
@@ -721,7 +721,7 @@ diva_bri_start_adapter(PISDN_ADAPTER IoA
 
 	a->ram_out(a, &PR_RAM->ReadyInt, 1);
 	for (i = 0; ((!IoAdapter->IrqCount) && (i < 100)); i++) {
-		diva_os_wait(10);
+		mdelay(10);
 	}
 	if (!IoAdapter->IrqCount) {
 		DBG_ERR(
@@ -793,7 +793,7 @@ static int diva_bri_stop_adapter(diva_os
 	IoAdapter->a.ReadyInt = 1;
 	IoAdapter->a.ram_inc(&IoAdapter->a, &PR_RAM->ReadyInt);
 	do {
-		diva_os_sleep(10);
+		msleep(10);
 	} while (i-- && a->clear_interrupts_proc);
 	if (a->clear_interrupts_proc) {
 		diva_bri_clear_interrupts(a);

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

      reply	other threads:[~2004-07-23 17:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23 17:40 [Kernel-janitors] [PATCH] eicon/os_bri: replace schedule_timeout() Nishanth Aravamudan
2004-07-23 17:42 ` Nishanth Aravamudan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040723174239.GI1911@us.ibm.com \
    --to=nacc@us.ibm.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.