Subject: README: [thorpej@netbsd.org: CVS commit: syssrc]
To: None <current-users@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: current-users
Date: 05/26/2000 14:28:08
I just committed the following major, but mostly mechanical change.  I
tested it on Alpha and i386, but I can't currently test it everywhere.

If I broke your platform, PLEASE SEND A BUG REPORT WITH SEND-PR
AS SOON AS POSSIBLE!

Thanks!

----- Forwarded message from Jason R Thorpe <thorpej@netbsd.org> -----

To: source-changes@netbsd.org
Date: Fri, 26 May 2000 14:20:35 -0700 (PDT)
From: Jason R Thorpe <thorpej@netbsd.org>
Subject: CVS commit: syssrc


Module Name:	syssrc
Committed By:	thorpej
Date:		Fri May 26 21:20:34 UTC 2000

Modified Files:
	syssrc/sys/arch/alpha/alpha: cpu.c dec_kn300.c dec_kn8ae.c genassym.c
	    interrupt.c locore.s machdep.c trap.c
	syssrc/sys/arch/alpha/include: cpu.h
	syssrc/sys/arch/amiga/amiga: locore.s machdep.c trap.c
	syssrc/sys/arch/amiga/include: cpu.h
	syssrc/sys/arch/amigappc/amigappc: locore.S machdep.c
	syssrc/sys/arch/amigappc/include: cpu.h
	syssrc/sys/arch/arc/arc: machdep.c
	syssrc/sys/arch/arc/include: cpu.h
	syssrc/sys/arch/arm26/arm26: Locore.c except.c machdep.c
	syssrc/sys/arch/arm26/include: cpu.h
	syssrc/sys/arch/arm32/arm32: ast.c cpuswitch.S machdep.c undefined.c
	syssrc/sys/arch/arm32/fpe-arm: armfpe_init.c
	syssrc/sys/arch/arm32/include: cpu.h
	syssrc/sys/arch/atari/atari: locore.s machdep.c trap.c
	syssrc/sys/arch/atari/include: cpu.h
	syssrc/sys/arch/bebox/bebox: locore.s machdep.c
	syssrc/sys/arch/bebox/include: cpu.h
	syssrc/sys/arch/cobalt/cobalt: machdep.c
	syssrc/sys/arch/cobalt/include: cpu.h
	syssrc/sys/arch/evbsh3/evbsh3: locore.s
	syssrc/sys/arch/hp300/hp300: locore.s machdep.c trap.c
	syssrc/sys/arch/hp300/include: cpu.h
	syssrc/sys/arch/hpcmips/hpcmips: machdep.c
	syssrc/sys/arch/hpcmips/include: cpu.h
	syssrc/sys/arch/hpcmips/vr: vr_idle.S
	syssrc/sys/arch/i386/i386: locore.s machdep.c svr4_machdep.c trap.c
	syssrc/sys/arch/i386/include: cpu.h
	syssrc/sys/arch/luna68k/include: cpu.h
	syssrc/sys/arch/luna68k/luna68k: locore.s machdep.c trap.c
	syssrc/sys/arch/m68k/m68k: proc_subr.s
	syssrc/sys/arch/mac68k/include: cpu.h
	syssrc/sys/arch/mac68k/mac68k: locore.s machdep.c trap.c
	syssrc/sys/arch/macppc/include: cpu.h
	syssrc/sys/arch/macppc/macppc: locore.S machdep.c
	syssrc/sys/arch/mips/include: cpu.h
	syssrc/sys/arch/mips/mips: locore.S trap.c
	syssrc/sys/arch/mmeye/mmeye: locore.s
	syssrc/sys/arch/mvme68k/include: cpu.h
	syssrc/sys/arch/mvme68k/mvme68k: locore.s machdep.c trap.c
	syssrc/sys/arch/news68k/include: cpu.h
	syssrc/sys/arch/news68k/news68k: locore.s machdep.c trap.c
	syssrc/sys/arch/newsmips/include: cpu.h
	syssrc/sys/arch/newsmips/newsmips: machdep.c
	syssrc/sys/arch/next68k/include: cpu.h
	syssrc/sys/arch/next68k/next68k: locore.s machdep.c trap.c
	syssrc/sys/arch/ofppc/include: cpu.h
	syssrc/sys/arch/ofppc/ofppc: locore.S machdep.c
	syssrc/sys/arch/pc532/include: cpu.h
	syssrc/sys/arch/pc532/pc532: locore.s machdep.c trap.c
	syssrc/sys/arch/pmax/include: cpu.h
	syssrc/sys/arch/pmax/pmax: machdep.c
	syssrc/sys/arch/powerpc/powerpc: Locore.c trap.c
	syssrc/sys/arch/prep/include: cpu.h
	syssrc/sys/arch/prep/prep: locore.s machdep.c
	syssrc/sys/arch/sh3/include: cpu.h
	syssrc/sys/arch/sh3/sh3: Locore.c sh3_machdep.c trap.c
	syssrc/sys/arch/sparc/include: cpu.h proc.h
	syssrc/sys/arch/sparc/sparc: cpuvar.h genassym.cf locore.s locore2.c
	    svr4_machdep.c trap.c
	syssrc/sys/arch/sparc64/include: cpu.h
	syssrc/sys/arch/sparc64/sparc64: locore.s locore2.c machdep.c
	    svr4_machdep.c trap.c
	syssrc/sys/arch/sun3/include: cpu.h
	syssrc/sys/arch/sun3/sun3: locore.s machdep.c trap.c
	syssrc/sys/arch/sun3/sun3x: locore.s machdep.c
	syssrc/sys/arch/vax/include: cpu.h
	syssrc/sys/arch/vax/vax: machdep.c subr.s trap.c vm_machdep.c
	syssrc/sys/arch/x68k/include: cpu.h
	syssrc/sys/arch/x68k/x68k: locore.s machdep.c trap.c
	syssrc/sys/kern: init_main.c kern_ktrace.c kern_resource.c kern_subr.c
	    kern_synch.c kern_time.c
	syssrc/sys/sys: proc.h sched.h systm.h
	syssrc/sys/uvm: uvm_page.c

Log Message:
First sweep at scheduler state cleanup.  Collect MI scheduler
state into global and per-CPU scheduler state:

	- Global state: sched_qs (run queues), sched_whichqs (bitmap
	  of non-empty run queues), sched_slpque (sleep queues).
	  NOTE: These may collectively move into a struct schedstate
	  at some point in the future.

	- Per-CPU state, struct schedstate_percpu: spc_runtime
	  (time process on this CPU started running), spc_flags
	  (replaces struct proc's p_schedflags), and
	  spc_curpriority (usrpri of processes on this CPU).

	- Every platform must now supply a struct cpu_info and
	  a curcpu() macro.  Simplify existing cpu_info declarations
	  where appropriate.

	- All references to per-CPU scheduler state now made through
	  curcpu().  NOTE: this will likely be adjusted in the future
	  after further changes to struct proc are made.

Tested on i386 and Alpha.  Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.


To generate a diff of this commit:
cvs rdiff -r1.44 -r1.45 syssrc/sys/arch/alpha/alpha/cpu.c \
    syssrc/sys/arch/alpha/alpha/interrupt.c
cvs rdiff -r1.15 -r1.16 syssrc/sys/arch/alpha/alpha/dec_kn300.c
cvs rdiff -r1.23 -r1.24 syssrc/sys/arch/alpha/alpha/dec_kn8ae.c
cvs rdiff -r1.27 -r1.28 syssrc/sys/arch/alpha/alpha/genassym.c
cvs rdiff -r1.73 -r1.74 syssrc/sys/arch/alpha/alpha/locore.s
cvs rdiff -r1.206 -r1.207 syssrc/sys/arch/alpha/alpha/machdep.c
cvs rdiff -r1.52 -r1.53 syssrc/sys/arch/alpha/alpha/trap.c
cvs rdiff -r1.38 -r1.39 syssrc/sys/arch/alpha/include/cpu.h
cvs rdiff -r1.114 -r1.115 syssrc/sys/arch/amiga/amiga/locore.s
cvs rdiff -r1.150 -r1.151 syssrc/sys/arch/amiga/amiga/machdep.c
cvs rdiff -r1.73 -r1.74 syssrc/sys/arch/amiga/amiga/trap.c
cvs rdiff -r1.48 -r1.49 syssrc/sys/arch/amiga/include/cpu.h
cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/amigappc/amigappc/locore.S
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/amigappc/amigappc/machdep.c
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/amigappc/include/cpu.h
cvs rdiff -r1.35 -r1.36 syssrc/sys/arch/arc/arc/machdep.c
cvs rdiff -r1.14 -r1.15 syssrc/sys/arch/arc/include/cpu.h
cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/arm26/arm26/Locore.c
cvs rdiff -r1.3 -r1.4 syssrc/sys/arch/arm26/arm26/except.c
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/arm26/arm26/machdep.c
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/arm26/include/cpu.h
cvs rdiff -r1.17 -r1.18 syssrc/sys/arch/arm32/arm32/ast.c \
    syssrc/sys/arch/arm32/arm32/undefined.c
cvs rdiff -r1.32 -r1.33 syssrc/sys/arch/arm32/arm32/cpuswitch.S
cvs rdiff -r1.77 -r1.78 syssrc/sys/arch/arm32/arm32/machdep.c
cvs rdiff -r1.17 -r1.18 syssrc/sys/arch/arm32/fpe-arm/armfpe_init.c
cvs rdiff -r1.19 -r1.20 syssrc/sys/arch/arm32/include/cpu.h
cvs rdiff -r1.66 -r1.67 syssrc/sys/arch/atari/atari/locore.s
cvs rdiff -r1.93 -r1.94 syssrc/sys/arch/atari/atari/machdep.c
cvs rdiff -r1.49 -r1.50 syssrc/sys/arch/atari/atari/trap.c
cvs rdiff -r1.32 -r1.33 syssrc/sys/arch/atari/include/cpu.h
cvs rdiff -r1.15 -r1.16 syssrc/sys/arch/bebox/bebox/locore.s
cvs rdiff -r1.51 -r1.52 syssrc/sys/arch/bebox/bebox/machdep.c
cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/bebox/include/cpu.h
cvs rdiff -r1.14 -r1.15 syssrc/sys/arch/cobalt/cobalt/machdep.c
cvs rdiff -r1.5 -r1.6 syssrc/sys/arch/cobalt/include/cpu.h
cvs rdiff -r1.13 -r1.14 syssrc/sys/arch/evbsh3/evbsh3/locore.s
cvs rdiff -r1.107 -r1.108 syssrc/sys/arch/hp300/hp300/locore.s
cvs rdiff -r1.138 -r1.139 syssrc/sys/arch/hp300/hp300/machdep.c
cvs rdiff -r1.76 -r1.77 syssrc/sys/arch/hp300/hp300/trap.c
cvs rdiff -r1.33 -r1.34 syssrc/sys/arch/hp300/include/cpu.h
cvs rdiff -r1.25 -r1.26 syssrc/sys/arch/hpcmips/hpcmips/machdep.c
cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/hpcmips/include/cpu.h
cvs rdiff -r1.4 -r1.5 syssrc/sys/arch/hpcmips/vr/vr_idle.S
cvs rdiff -r1.219 -r1.220 syssrc/sys/arch/i386/i386/locore.s
cvs rdiff -r1.385 -r1.386 syssrc/sys/arch/i386/i386/machdep.c
cvs rdiff -r1.46 -r1.47 syssrc/sys/arch/i386/i386/svr4_machdep.c
cvs rdiff -r1.136 -r1.137 syssrc/sys/arch/i386/i386/trap.c
cvs rdiff -r1.62 -r1.63 syssrc/sys/arch/i386/include/cpu.h
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/luna68k/include/cpu.h
cvs rdiff -r1.5 -r1.6 syssrc/sys/arch/luna68k/luna68k/locore.s
cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/luna68k/luna68k/machdep.c
cvs rdiff -r1.4 -r1.5 syssrc/sys/arch/luna68k/luna68k/trap.c
cvs rdiff -r1.3 -r1.4 syssrc/sys/arch/m68k/m68k/proc_subr.s
cvs rdiff -r1.63 -r1.64 syssrc/sys/arch/mac68k/include/cpu.h
cvs rdiff -r1.127 -r1.128 syssrc/sys/arch/mac68k/mac68k/locore.s
cvs rdiff -r1.250 -r1.251 syssrc/sys/arch/mac68k/mac68k/machdep.c
cvs rdiff -r1.79 -r1.80 syssrc/sys/arch/mac68k/mac68k/trap.c
cvs rdiff -r1.10 -r1.11 syssrc/sys/arch/macppc/include/cpu.h
cvs rdiff -r1.22 -r1.23 syssrc/sys/arch/macppc/macppc/locore.S
cvs rdiff -r1.72 -r1.73 syssrc/sys/arch/macppc/macppc/machdep.c
cvs rdiff -r1.39 -r1.40 syssrc/sys/arch/mips/include/cpu.h
cvs rdiff -r1.99 -r1.100 syssrc/sys/arch/mips/mips/locore.S
cvs rdiff -r1.130 -r1.131 syssrc/sys/arch/mips/mips/trap.c
cvs rdiff -r1.13 -r1.14 syssrc/sys/arch/mmeye/mmeye/locore.s
cvs rdiff -r1.13 -r1.14 syssrc/sys/arch/mvme68k/include/cpu.h
cvs rdiff -r1.59 -r1.60 syssrc/sys/arch/mvme68k/mvme68k/locore.s
cvs rdiff -r1.65 -r1.66 syssrc/sys/arch/mvme68k/mvme68k/machdep.c
cvs rdiff -r1.37 -r1.38 syssrc/sys/arch/mvme68k/mvme68k/trap.c
cvs rdiff -r1.3 -r1.4 syssrc/sys/arch/news68k/include/cpu.h
cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/news68k/news68k/locore.s \
    syssrc/sys/arch/news68k/news68k/machdep.c
cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/news68k/news68k/trap.c
cvs rdiff -r1.7 -r1.8 syssrc/sys/arch/newsmips/include/cpu.h
cvs rdiff -r1.40 -r1.41 syssrc/sys/arch/newsmips/newsmips/machdep.c
cvs rdiff -r1.11 -r1.12 syssrc/sys/arch/next68k/include/cpu.h
cvs rdiff -r1.23 -r1.24 syssrc/sys/arch/next68k/next68k/locore.s
cvs rdiff -r1.31 -r1.32 syssrc/sys/arch/next68k/next68k/machdep.c
cvs rdiff -r1.20 -r1.21 syssrc/sys/arch/next68k/next68k/trap.c
cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/ofppc/include/cpu.h
cvs rdiff -r1.16 -r1.17 syssrc/sys/arch/ofppc/ofppc/locore.S
cvs rdiff -r1.53 -r1.54 syssrc/sys/arch/ofppc/ofppc/machdep.c
cvs rdiff -r1.29 -r1.30 syssrc/sys/arch/pc532/include/cpu.h
cvs rdiff -r1.59 -r1.60 syssrc/sys/arch/pc532/pc532/locore.s
cvs rdiff -r1.109 -r1.110 syssrc/sys/arch/pc532/pc532/machdep.c
cvs rdiff -r1.38 -r1.39 syssrc/sys/arch/pc532/pc532/trap.c
cvs rdiff -r1.23 -r1.24 syssrc/sys/arch/pmax/include/cpu.h
cvs rdiff -r1.171 -r1.172 syssrc/sys/arch/pmax/pmax/machdep.c
cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/powerpc/powerpc/Locore.c
cvs rdiff -r1.24 -r1.25 syssrc/sys/arch/powerpc/powerpc/trap.c
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/prep/include/cpu.h
cvs rdiff -r1.4 -r1.5 syssrc/sys/arch/prep/prep/locore.s \
    syssrc/sys/arch/prep/prep/machdep.c
cvs rdiff -r1.7 -r1.8 syssrc/sys/arch/sh3/include/cpu.h
cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/sh3/sh3/Locore.c
cvs rdiff -r1.5 -r1.6 syssrc/sys/arch/sh3/sh3/sh3_machdep.c
cvs rdiff -r1.10 -r1.11 syssrc/sys/arch/sh3/sh3/trap.c
cvs rdiff -r1.35 -r1.36 syssrc/sys/arch/sparc/include/cpu.h
cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/sparc/include/proc.h
cvs rdiff -r1.23 -r1.24 syssrc/sys/arch/sparc/sparc/cpuvar.h
cvs rdiff -r1.27 -r1.28 syssrc/sys/arch/sparc/sparc/genassym.cf
cvs rdiff -r1.129 -r1.130 syssrc/sys/arch/sparc/sparc/locore.s
cvs rdiff -r1.8 -r1.9 syssrc/sys/arch/sparc/sparc/locore2.c
cvs rdiff -r1.38 -r1.39 syssrc/sys/arch/sparc/sparc/svr4_machdep.c
cvs rdiff -r1.89 -r1.90 syssrc/sys/arch/sparc/sparc/trap.c
cvs rdiff -r1.16 -r1.17 syssrc/sys/arch/sparc64/include/cpu.h
cvs rdiff -r1.58 -r1.59 syssrc/sys/arch/sparc64/sparc64/locore.s
cvs rdiff -r1.1.1.1 -r1.2 syssrc/sys/arch/sparc64/sparc64/locore2.c
cvs rdiff -r1.61 -r1.62 syssrc/sys/arch/sparc64/sparc64/machdep.c
cvs rdiff -r1.12 -r1.13 syssrc/sys/arch/sparc64/sparc64/svr4_machdep.c
cvs rdiff -r1.39 -r1.40 syssrc/sys/arch/sparc64/sparc64/trap.c
cvs rdiff -r1.23 -r1.24 syssrc/sys/arch/sun3/include/cpu.h
cvs rdiff -r1.71 -r1.72 syssrc/sys/arch/sun3/sun3/locore.s
cvs rdiff -r1.136 -r1.137 syssrc/sys/arch/sun3/sun3/machdep.c
cvs rdiff -r1.88 -r1.89 syssrc/sys/arch/sun3/sun3/trap.c
cvs rdiff -r1.38 -r1.39 syssrc/sys/arch/sun3/sun3x/locore.s
cvs rdiff -r1.55 -r1.56 syssrc/sys/arch/sun3/sun3x/machdep.c
cvs rdiff -r1.44 -r1.45 syssrc/sys/arch/vax/include/cpu.h
cvs rdiff -r1.98 -r1.99 syssrc/sys/arch/vax/vax/machdep.c
cvs rdiff -r1.39 -r1.40 syssrc/sys/arch/vax/vax/subr.s
cvs rdiff -r1.50 -r1.51 syssrc/sys/arch/vax/vax/trap.c
cvs rdiff -r1.59 -r1.60 syssrc/sys/arch/vax/vax/vm_machdep.c
cvs rdiff -r1.22 -r1.23 syssrc/sys/arch/x68k/include/cpu.h
cvs rdiff -r1.56 -r1.57 syssrc/sys/arch/x68k/x68k/locore.s
cvs rdiff -r1.80 -r1.81 syssrc/sys/arch/x68k/x68k/machdep.c
cvs rdiff -r1.38 -r1.39 syssrc/sys/arch/x68k/x68k/trap.c
cvs rdiff -r1.167 -r1.168 syssrc/sys/kern/init_main.c
cvs rdiff -r1.40 -r1.41 syssrc/sys/kern/kern_ktrace.c
cvs rdiff -r1.55 -r1.56 syssrc/sys/kern/kern_resource.c
cvs rdiff -r1.66 -r1.67 syssrc/sys/kern/kern_subr.c
cvs rdiff -r1.72 -r1.73 syssrc/sys/kern/kern_synch.c
cvs rdiff -r1.45 -r1.46 syssrc/sys/kern/kern_time.c
cvs rdiff -r1.92 -r1.93 syssrc/sys/sys/proc.h
cvs rdiff -r1.2 -r1.3 syssrc/sys/sys/sched.h
cvs rdiff -r1.108 -r1.109 syssrc/sys/sys/systm.h
cvs rdiff -r1.34 -r1.35 syssrc/sys/uvm/uvm_page.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



----- End forwarded message -----

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>