kern_synch.c (2b14f991e64ebe31ca31a1a41237061c22a753d0) kern_synch.c (4590fd3a2a5539b8a1ce2ad488707123c8b7c8c8)
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_synch.c 8.6 (Berkeley) 1/21/94
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_synch.c 8.6 (Berkeley) 1/21/94
39 * $Id: kern_synch.c,v 1.11 1995/05/30 08:05:44 rgrimes Exp $
39 * $Id: kern_synch.c,v 1.12 1995/08/28 09:18:45 julian Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/proc.h>
45#include <sys/kernel.h>
46#include <sys/buf.h>
47#include <sys/signalvar.h>

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

54
55#include <machine/cpu.h>
56
57
58/*
59 * System initialization
60 */
61
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/proc.h>
45#include <sys/kernel.h>
46#include <sys/buf.h>
47#include <sys/signalvar.h>

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

54
55#include <machine/cpu.h>
56
57
58/*
59 * System initialization
60 */
61
62static void rqinit __P((caddr_t));
62static void rqinit __P((void *));
63SYSINIT(runqueue, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, rqinit, NULL)
64
65
66
67u_char curpriority; /* usrpri of curproc */
68int lbolt; /* once a second sleep address */
69
70void endtsleep __P((void *));

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

609}
610
611/*
612 * Initialize the (doubly-linked) run queues
613 * to be empty.
614 */
615/* ARGSUSED*/
616static void
63SYSINIT(runqueue, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, rqinit, NULL)
64
65
66
67u_char curpriority; /* usrpri of curproc */
68int lbolt; /* once a second sleep address */
69
70void endtsleep __P((void *));

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

609}
610
611/*
612 * Initialize the (doubly-linked) run queues
613 * to be empty.
614 */
615/* ARGSUSED*/
616static void
617rqinit( udata)
618caddr_t udata; /* not used*/
617rqinit(udata)
618 void *udata; /* not used*/
619{
620 register int i;
621
622 for (i = 0; i < NQS; i++) {
623 qs[i].ph_link = qs[i].ph_rlink = (struct proc *)&qs[i];
624 rtqs[i].ph_link = rtqs[i].ph_rlink = (struct proc *)&rtqs[i];
625 idqs[i].ph_link = idqs[i].ph_rlink = (struct proc *)&idqs[i];
626 }

--- 62 unchanged lines hidden ---
619{
620 register int i;
621
622 for (i = 0; i < NQS; i++) {
623 qs[i].ph_link = qs[i].ph_rlink = (struct proc *)&qs[i];
624 rtqs[i].ph_link = rtqs[i].ph_rlink = (struct proc *)&rtqs[i];
625 idqs[i].ph_link = idqs[i].ph_rlink = (struct proc *)&idqs[i];
626 }

--- 62 unchanged lines hidden ---