Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2010 01:39:44 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   Re: PERFORCE change 178075 for review
Message-ID:  <201005110139.44220.hselasky@c2i.net>
In-Reply-To: <201005102335.o4ANZnb9090023@repoman.freebsd.org>
References:  <201005102335.o4ANZnb9090023@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 11 May 2010 01:35:49 Hans Petter Selasky wrote:
> http://p4web.freebsd.org/@@178075?ac=10
> 

The following change is about computing the correct delay in the frame-list:

>  	if ((xfer->endpoint->is_synced == 0) ||
> -	    (buf_offset < ((xfer->nframes + 7) / 8))) {
> +	    (buf_offset < (((xfer->nframes << shift) + 7) / 8))) {
>  		/*
>  		 * If there is data underflow or the pipe queue is empty we
>  		 * schedule the transfer a few frames ahead of the current
> @@ -2844,7 +2855,7 @@
>  	 */
>  	xfer->isoc_time_complete =
>  	    usb_isoc_time_expand(&sc->sc_bus, nframes) + buf_offset +
> -	    ((xfer->nframes + 7) / 8);
> +	    (((xfer->nframes << shift) + 7) / 8);
> 
>  	/* get the real number of frames */
> 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005110139.44220.hselasky>