freebsd-nq/sys/alpha/alpha
Julian Elischer ed062c8d66 Refactor a bunch of scheduler code to give basically the same behaviour
but with slightly cleaned up interfaces.

The KSE structure has become the same as the "per thread scheduler
private data" structure. In order to not make the diffs too great
one is #defined as the other at this time.

The KSE (or td_sched) structure is  now allocated per thread and has no
allocation code of its own.

Concurrency for a KSEGRP is now kept track of via a simple pair of counters
rather than using KSE structures as tokens.

Since the KSE structure is different in each scheduler, kern_switch.c
is now included at the end of each scheduler. Nothing outside the
scheduler knows the contents of the KSE (aka td_sched) structure.

The fields in the ksegrp structure that are to do with the scheduler's
queueing mechanisms are now moved to the kg_sched structure.
(per ksegrp scheduler private data structure). In other words how the
scheduler queues and keeps track of threads is no-one's business except
the scheduler's. This should allow people to write experimental
schedulers with completely different internal structuring.

A scheduler call sched_set_concurrency(kg, N) has been added that
notifies teh scheduler that no more than N threads from that ksegrp
should be allowed to be on concurrently scheduled. This is also
used to enforce 'fainess' at this time so that a ksegrp with
10000 threads can not swamp a the run queue and force out a process
with 1 thread, since the current code will not set the concurrency above
NCPU, and both schedulers will not allow more than that many
onto the system run queue at a time. Each scheduler should eventualy develop
their own methods to do this now that they are effectively separated.

Rejig libthr's kernel interface to follow the same code paths as
linkse for scope system threads. This has slightly hurt libthr's performance
but I will work to recover as much of it as I can.

Thread exit code has been cleaned up greatly.
exit and exec code now transitions a process back to
'standard non-threaded mode' before taking the next step.
Reviewed by:	scottl, peter
MFC after:	1 week
2004-09-05 02:09:54 +00:00
..
api_up1000.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
atomic.s
autoconf.c Move a relic to its correct location(s): Put nfs diskless initialization 2004-07-28 21:54:57 +00:00
busdma_machdep.c Allocate s/g segments in the tag rather than on the stack. 2004-07-02 03:47:28 +00:00
busspace.c
clock_if.m
clock.c Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +00:00
cpuconf.c
critical.c
db_disasm.c Mega update for the KDB framework: turn DDB into a KDB backend. 2004-07-10 23:47:20 +00:00
db_instruction.h Convert to __FBSDID. 2004-01-04 23:30:47 +00:00
db_interface.c Mega update for the KDB framework: turn DDB into a KDB backend. 2004-07-10 23:47:20 +00:00
db_trace.c Unify db_stack_trace_cmd(). All it did was look up the thread given 2004-07-21 05:07:09 +00:00
dec_1000a.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
dec_2100_a50.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
dec_2100_a500.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
dec_3000_300.c
dec_3000_500.c
dec_axppci_33.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
dec_eb64plus.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
dec_eb164.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
dec_kn8ae.c
dec_kn20aa.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
dec_kn300.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
dec_st550.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
dec_st6600.c Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
divrem.m4
dump_machdep.c Catch a few places where NULL (pointer) was used where 0 (integer) was 2003-12-23 02:36:43 +00:00
elf_machdep.c Add __elfN(dump_thread). This function is called from __elfN(coredump) 2004-08-11 02:35:06 +00:00
exception.s
fp_emulate.c Don't clear the exception flags after we finish emulating a 2004-05-06 09:35:57 +00:00
gdb_machdep.c Introduce the GDB debugger backend for the new KDB framework. The 2004-07-10 17:47:22 +00:00
genassym.c Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +00:00
ieee_float.c When a denormal underflows to zero, raise an underflow exception. 2004-05-06 09:36:11 +00:00
ieee_float.h
in_cksum.c
interrupt.c The previous revision introduced a compilation error, i.e., the use of an 2004-07-20 06:32:32 +00:00
locore.s
machdep.c Refactor a bunch of scheduler code to give basically the same behaviour 2004-09-05 02:09:54 +00:00
mem.c Break out the MI part of the /dev/[k]mem and /dev/io drivers into 2004-08-01 11:40:54 +00:00
mp_machdep.c Comsetic tweaks: use PCPU_GET(cpumask) and CPU_ABSENT(). 2004-01-07 23:00:20 +00:00
pal.s
pmap.c The machine-independent parts of the virtual memory system always pass a 2004-08-27 19:06:17 +00:00
prom_disp.s
prom.c
promcons.c Preparation commit for the tty cleanups that will follow in the near 2004-07-15 20:47:41 +00:00
sgmap.c Catch up with __RMAN_RESOURCE_VISIBLE enough to get GENERIC to build 2004-07-01 15:07:27 +00:00
support.s Remove filename+line number from panic messages. 2004-06-06 21:26:49 +00:00
swtch.s
sys_machdep.c Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +00:00
timerreg.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
trap.c Remove an unneeded argument.. 2004-08-31 07:34:54 +00:00
uio_machdep.c Remove checks for curthread == NULL - it can't happen. 2004-06-03 10:22:47 +00:00
uma_machdep.c Move uma_small_alloc() and uma_small_free() out of the pmap and into their 2004-06-11 19:55:56 +00:00
vm_machdep.c Retire cpu_sched_exit(); it is not used any more. 2004-05-26 12:09:39 +00:00