Date: Fri, 16 Jul 1999 09:30:02 -0700 (PDT) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/12668: The kernel clock goes slow with PLIP device (lp0) Message-ID: <199907161630.JAA62709@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR kern/12668; it has been noted by GNATS.
From: Bruce Evans <bde@zeta.org.au>
To: freebsd-gnats-submit@FreeBSD.ORG, you@cc.sakuramail.com
Cc:
Subject: Re: kern/12668: The kernel clock goes slow with PLIP device (lp0)
Date: Sat, 17 Jul 1999 02:23:04 +1000
>>Description:
> While transferring large amount of data via PLIP device (lp0),
>the kernel clock goes very slow. I'm using Libretto 50,
>transferring a couple of 10MB file causes that the kenel clock goes
>slow a couple of 10 seconds.
Try this quick fix. It is not the default since it may cause lp0
interface errors on the same slow machines that not having it
causes interrupt latency problems.
Bruce
diff -c2 if_plip.c~ if_plip.c
*** if_plip.c~ Wed Jul 7 22:47:03 1999
--- if_plip.c Sat Jul 17 02:20:05 1999
***************
*** 476,480 ****
struct mbuf *top;
! s = splhigh();
if (sc->sc_if.if_flags & IFF_LINK0) {
--- 476,481 ----
struct mbuf *top;
! s = splimp();
! (void)spltty();
if (sc->sc_if.if_flags & IFF_LINK0) {
***************
*** 643,647 ****
err = 1; /* assume we're aborting because of an error */
! s = splhigh();
/* Suspend (on laptops) or receive-errors might have taken us offline */
--- 644,649 ----
err = 1; /* assume we're aborting because of an error */
! s = splimp();
! (void)spltty();
/* Suspend (on laptops) or receive-errors might have taken us offline */
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907161630.JAA62709>
