Date: Sat, 11 May 2002 22:54:21 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ia64/acpica madt.c src/sys/ia64/ia64 interrupt.c mp_machdep.c sal.c src/sys/ia64/include cpu.h smp.h Message-ID: <200205120554.g4C5sLj17843@freefall.freebsd.org>
index | next in thread | raw e-mail
marcel 2002/05/11 22:54:21 PDT
Modified files:
sys/ia64/acpica madt.c
sys/ia64/ia64 interrupt.c mp_machdep.c sal.c
sys/ia64/include cpu.h smp.h
Log:
o Rename ia64_count_aps to ia64_count_cpus and reimplement the
function to return the total number of CPUs and not the highest
CPU id.
o Define mp_maxid based on the minimum of the actual number of
CPUs in the system and MAXCPU.
o In cpu_mp_add, when the CPU id of the CPU we're trying to add
is larger than mp_maxid, don't add the CPU. Formerly this was
based on MAXCPU. Don't count CPUs when we add them. We already
know how many CPUs exist.
o Replace MAXCPU with mp_maxid when used in loops that iterate
over the id space. This avoids a couple of useless iterations.
o In cpu_mp_unleash, use the number of CPUs to determine if we
need to launch the CPUs.
o Remove mp_hardware as it's not used anymore.
o Move the IPI vector array from mp_machdep.c to sal.c. We use
the array as a centralized place to collect vector assignments.
Note that we still assign vectors to SMP specific IPIs in
non-SMP configurations. Rename the array from mp_ipi_vector to
ipi_vector.
o Add IPI_MCA_RENDEZ and IPI_MCA_CMCV. These are used by MCA.
Note that IPI_MCA_CMCV is not SMP specific.
o Initialize the ipi_vector array so that we place the IPIs in
sensible priority classes. The classes are relative to where
the AP wake-up vector is located to guarantee that it's the
highest priority (external) interrupt. Class assignment is
as follows:
class IPI notes
x AP wake-up (normally x=15)
x-1 MCA rendezvous
x-2 AST, Rendezvous, stop
x-3 CMCV, test
Revision Changes Path
1.9 +22 -13 src/sys/ia64/acpica/madt.c
1.24 +4 -4 src/sys/ia64/ia64/interrupt.c
1.37 +25 -20 src/sys/ia64/ia64/mp_machdep.c
1.10 +61 -9 src/sys/ia64/ia64/sal.c
1.25 +1 -1 src/sys/ia64/include/cpu.h
1.7 +12 -9 src/sys/ia64/include/smp.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205120554.g4C5sLj17843>
