summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-04-25 17:24:57 +0000
committerjhb <jhb@FreeBSD.org>2001-04-25 17:24:57 +0000
commit82f8beb7b024545dac50a53776e8e28956aa5a20 (patch)
tree1cb592817bad83c309eaa55bd2d3042cb40c788a /sys/alpha
parent1680a102dc7289c7d8b36c1991b587b26dcabc2b (diff)
downloadFreeBSD-src-82f8beb7b024545dac50a53776e8e28956aa5a20.zip
FreeBSD-src-82f8beb7b024545dac50a53776e8e28956aa5a20.tar.gz
- Make the dumping of console messages from the secondary CPU's to the
kernel console be #ifdef DIAGNOSTIC. - Don't set ktr_mask in release_aps().
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/mp_machdep.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/alpha/alpha/mp_machdep.c b/sys/alpha/alpha/mp_machdep.c
index 629bdee..3715c2f 100644
--- a/sys/alpha/alpha/mp_machdep.c
+++ b/sys/alpha/alpha/mp_machdep.c
@@ -1086,20 +1086,23 @@ smp_handle_ipi(struct trapframe *frame)
* secondaries that are added to the system on the fly.
*/
if (PCPU_GET(cpuid) == hwrpb->rpb_primary_cpu_id) {
- struct pcs *cpu;
u_int cpuid;
u_int64_t txrdy;
+#ifdef DIAGNOSTIC
+ struct pcs *cpu;
char buf[81];
+#endif
alpha_mb();
while (hwrpb->rpb_txrdy != 0) {
cpuid = ffs(hwrpb->rpb_txrdy) - 1;
+#ifdef DIAGNOSTIC
cpu = LOCATE_PCS(hwrpb, cpuid);
bcopy(&cpu->pcs_buffer.txbuf, buf,
cpu->pcs_buffer.txlen);
buf[cpu->pcs_buffer.txlen] = '\0';
printf("SMP From CPU%d: %s\n", cpuid, buf);
-
+#endif
do {
txrdy = hwrpb->rpb_txrdy;
} while (atomic_cmpset_64(&hwrpb->rpb_txrdy, txrdy,
@@ -1111,7 +1114,6 @@ smp_handle_ipi(struct trapframe *frame)
static void
release_aps(void *dummy __unused)
{
- ktr_mask = (KTR_SMP|KTR_INTR|KTR_PROC|KTR_LOCK);
if (bootverbose)
printf(__func__ ": releasing secondary CPUs\n");
atomic_store_rel_int(&aps_ready, 1);
OpenPOWER on IntegriCloud