public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: domen@coderock•org
To: paulus@samba•org
Cc: linuxppc-dev@ozlabs•org, domen@coderock•org,
	Nishanth Aravamudan <nacc@us•ibm.com>
Subject: [patch 1/1] ppc/fcc_enet: replace schedule_timeout() with ssleep()
Date: Thu, 07 Jul 2005 23:28:38 +0200	[thread overview]
Message-ID: <20050707212838.156820000@homer> (raw)

From: Nishanth Aravamudan <nacc@us•ibm.com>


Use ssleep() instead of schedule_timeout() to guarantee the task delays
as expected.

Signed-off-by: Nishanth Aravamudan <nacc@us•ibm.com>
Signed-off-by: Domen Puncer <domen@coderock•org>

---
 fcc_enet.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

Index: quilt/arch/ppc/8260_io/fcc_enet.c
===================================================================
--- quilt.orig/arch/ppc/8260_io/fcc_enet.c
+++ quilt/arch/ppc/8260_io/fcc_enet.c
@@ -1305,12 +1305,11 @@ static void mii_parse_dm9161_scsr(uint m
 
 static void mii_dm9161_wait(uint mii_reg, struct net_device *dev)
 {
-	int timeout = HZ;
+	int timeout_secs = 1;
 
 	/* Davicom takes a bit to come up after a reset,
 	 * so wait here for a bit */
-	set_current_state(TASK_UNINTERRUPTIBLE);
-	schedule_timeout(timeout);
+	ssleep(timeout_secs);
 }
 
 static phy_info_t phy_info_dm9161 = {

--

             reply	other threads:[~2005-07-07 21:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-07 21:28 domen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-13 22:12 [patch 1/1] ppc/fcc_enet: replace schedule_timeout() with ssleep() domen

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=20050707212838.156820000@homer \
    --to=domen@coderock$(echo .)org \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=nacc@us$(echo .)ibm.com \
    --cc=paulus@samba$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox