opnsense-src/sys/alpha/alpha
Jake Burkholder d5a08a6065 Implement a unified run queue and adjust priority levels accordingly.
- All processes go into the same array of queues, with different
  scheduling classes using different portions of the array.  This
  allows user processes to have their priorities propogated up into
  interrupt thread range if need be.
- I chose 64 run queues as an arbitrary number that is greater than
  32.  We used to have 4 separate arrays of 32 queues each, so this
  may not be optimal.  The new run queue code was written with this
  in mind; changing the number of run queues only requires changing
  constants in runq.h and adjusting the priority levels.
- The new run queue code takes the run queue as a parameter.  This
  is intended to be used to create per-cpu run queues.  Implement
  wrappers for compatibility with the old interface which pass in
  the global run queue structure.
- Group the priority level, user priority, native priority (before
  propogation) and the scheduling class into a struct priority.
- Change any hard coded priority levels that I found to use
  symbolic constants (TTIPRI and TTOPRI).
- Remove the curpriority global variable and use that of curproc.
  This was used to detect when a process' priority had lowered and
  it should yield.  We now effectively yield on every interrupt.
- Activate propogate_priority().  It should now have the desired
  effect without needing to also propogate the scheduling class.
- Temporarily comment out the call to vm_page_zero_idle() in the
  idle loop.  It interfered with propogate_priority() because
  the idle process needed to do a non-blocking acquire of Giant
  and then other processes would try to propogate their priority
  onto it.  The idle process should not do anything except idle.
  vm_page_zero_idle() will return in the form of an idle priority
  kernel thread which is woken up at apprioriate times by the vm
  system.
- Update struct kinfo_proc to the new priority interface.  Deliberately
  change its size by adjusting the spare fields.  It remained the same
  size, but the layout has changed, so userland processes that use it
  would parse the data incorrectly.  The size constraint should really
  be changed to an arbitrary version number.  Also add a debug.sizeof
  sysctl node for struct kinfo_proc.
2001-02-12 00:20:08 +00:00
..
alpha-gdbstub.c Remove count for NSIO. The only places it was used it were incorrect. 2001-01-31 10:54:45 +00:00
api_up1000.c Argh, I missed some #include "sio.h". I was looking primarily for NSIO 2001-02-02 01:48:40 +00:00
atomic.s Remove atomic_*_{32,64} since they are now inline. If you haven't rebuilt 2000-09-22 08:30:59 +00:00
autoconf.c Clean up some leftovers from the root mount cleanup that was done some 2001-02-04 15:35:10 +00:00
busdma_machdep.c - Catch up to the new swi API changes: 2001-02-09 17:46:35 +00:00
busspace.c Remove a vestige of an older attempt at implementing this. 2000-08-29 08:50:17 +00:00
clock.c Convert various calls to splhigh() to disable_intr() since splhigh() is 2000-11-19 12:28:42 +00:00
clock_if.m * Factor out the object system from new-bus so that it can be used by 2000-04-08 14:17:18 +00:00
cpuconf.c Next phase in the PCI subsystem cleanup. 2000-12-08 22:11:23 +00:00
db_disasm.c Don't tell printf() to output a sign when printing out a value as hex. 2000-09-11 05:28:52 +00:00
db_instruction.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
db_interface.c Remove the "machine dependent" KTR trace buffer ddb commands. The code was 2000-12-14 23:57:30 +00:00
db_trace.c Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
dec_1000a.c Argh, I missed some #include "sio.h". I was looking primarily for NSIO 2001-02-02 01:48:40 +00:00
dec_2100_a50.c Argh, I missed some #include "sio.h". I was looking primarily for NSIO 2001-02-02 01:48:40 +00:00
dec_2100_a500.c Grumble, I broke this file with a vi accident before commit. :-( 2001-02-04 04:13:12 +00:00
dec_3000_300.c Next phase in the PCI subsystem cleanup. 2000-12-08 22:11:23 +00:00
dec_3000_500.c Next phase in the PCI subsystem cleanup. 2000-12-08 22:11:23 +00:00
dec_axppci_33.c Remove inclusion of now vanished sio.h. 2001-02-01 21:59:00 +00:00
dec_eb64plus.c Argh, I missed some #include "sio.h". I was looking primarily for NSIO 2001-02-02 01:48:40 +00:00
dec_eb164.c Remove inclusion of now vanished sio.h. 2001-02-01 21:59:00 +00:00
dec_kn8ae.c Next phase in the PCI subsystem cleanup. 2000-12-08 22:11:23 +00:00
dec_kn20aa.c Argh, I missed some #include "sio.h". I was looking primarily for NSIO 2001-02-02 01:48:40 +00:00
dec_kn300.c Remove inclusion of now vanished sio.h. 2001-02-01 21:59:00 +00:00
dec_st550.c Argh, I missed some #include "sio.h". I was looking primarily for NSIO 2001-02-02 01:48:40 +00:00
dec_st6600.c Remove inclusion of now vanished sio.h. 2001-02-01 21:59:00 +00:00
divrem.m4 Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
elf_machdep.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
exception.s - Make astpending and need_resched process attributes rather than CPU 2001-02-10 02:20:34 +00:00
fp_emulate.c Re-organise the code which manages the owner of the FP state (fpcurproc). 1999-11-10 21:14:25 +00:00
genassym.c - Make astpending and need_resched process attributes rather than CPU 2001-02-10 02:20:34 +00:00
gensetdefs.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ieee_float.c Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
ieee_float.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
in_cksum.c Fix checksum calculations. This should fix the network problems 2000-05-07 16:41:15 +00:00
interrupt.c Reenable preemption on interrupts. My last commit accidentally reverted 2001-02-10 02:46:50 +00:00
locore.s Wrap the startup code used by secondary processors in #ifdef SMP. 2001-01-24 10:01:53 +00:00
machdep.c Move the initailization of the proc lock for proc0 very early into the MD 2001-02-09 16:25:16 +00:00
mem.c - Overhaul the software interrupt code to use interrupt threads for each 2000-10-25 05:19:40 +00:00
mp_machdep.c RIP <machine/lock.h>. 2001-02-11 10:44:09 +00:00
pal.s Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
pmap.c Remove unnecessary locking to protect the p_upages_obj and p_addr 2001-01-30 00:35:35 +00:00
procfs_machdep.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
prom.c Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variables 2001-01-10 04:43:51 +00:00
prom_disp.s useracc() the prequel: 1999-10-29 18:09:36 +00:00
promcons.c remove unneded sys/ucred.h includes 2000-11-30 18:52:32 +00:00
setdef0.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
setdef1.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
sgmap.c useracc() the prequel: 1999-10-29 18:09:36 +00:00
support.s Major update to the way synchronization is done in the kernel. Highlights 2000-09-07 01:33:02 +00:00
swtch.s Temporary workaround to get things to compile. I could have updated 2001-02-10 23:22:49 +00:00
sys_machdep.c Protect proc.p_pptr and proc.p_children/p_sibling with the 2000-12-23 19:43:10 +00:00
timerreg.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
trap.c Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
vm_machdep.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00