Deleted Added
full compact
kern_synch.c (297466) kern_synch.c (298649)
1/*-
2 * Copyright (c) 1982, 1986, 1990, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 21 unchanged lines hidden (view full) ---

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_synch.c 8.9 (Berkeley) 5/19/95
35 */
36
37#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1990, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 21 unchanged lines hidden (view full) ---

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_synch.c 8.9 (Berkeley) 5/19/95
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/kern/kern_synch.c 297466 2016-03-31 18:10:29Z jhb $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_synch.c 298649 2016-04-26 15:38:17Z pfg $");
39
40#include "opt_ktrace.h"
41#include "opt_sched.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/condvar.h>
46#include <sys/kdb.h>

--- 285 unchanged lines hidden (view full) ---

332 * We delay one second at a time to avoid overflowing the
333 * system specific DELAY() function(s):
334 */
335 while (sbt >= SBT_1S) {
336 DELAY(1000000);
337 sbt -= SBT_1S;
338 }
339 /* Do the delay remainder, if any */
39
40#include "opt_ktrace.h"
41#include "opt_sched.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/condvar.h>
46#include <sys/kdb.h>

--- 285 unchanged lines hidden (view full) ---

332 * We delay one second at a time to avoid overflowing the
333 * system specific DELAY() function(s):
334 */
335 while (sbt >= SBT_1S) {
336 DELAY(1000000);
337 sbt -= SBT_1S;
338 }
339 /* Do the delay remainder, if any */
340 sbt = (sbt + SBT_1US - 1) / SBT_1US;
340 sbt = howmany(sbt, SBT_1US);
341 if (sbt > 0)
342 DELAY(sbt);
343 return (0);
344 }
345 return (_sleep(&pause_wchan[curcpu], NULL, 0, wmesg, sbt, pr, flags));
346}
347
348/*

--- 246 unchanged lines hidden ---
341 if (sbt > 0)
342 DELAY(sbt);
343 return (0);
344 }
345 return (_sleep(&pause_wchan[curcpu], NULL, 0, wmesg, sbt, pr, flags));
346}
347
348/*

--- 246 unchanged lines hidden ---