diff options
author | tegge <tegge@FreeBSD.org> | 1998-05-17 22:12:14 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 1998-05-17 22:12:14 +0000 |
commit | 4347025be3ee2eaf0c12f7838df60ccaad126267 (patch) | |
tree | 35c785e270e1950f43a8dd00138cc297f3c02026 /sys/kern/kern_shutdown.c | |
parent | 902ca8e68b9388df5776d79f4fe4a9f26c7c8577 (diff) | |
download | FreeBSD-src-4347025be3ee2eaf0c12f7838df60ccaad126267.zip FreeBSD-src-4347025be3ee2eaf0c12f7838df60ccaad126267.tar.gz |
Add forwarding of roundrobin to other cpus. This gives a more regular
update of cpu usage as shown by top when one process is cpu bound
(no system calls) while the system is otherwise idle (except for top).
Don't attempt to switch to the BSP in boot(). If the system was idle when
an interrupt caused a panic, this won't work. Instead, switch to the BSP
in cpu_reset.
Remove some spurious forward_statclock/forward_hardclock warnings.
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r-- | sys/kern/kern_shutdown.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 448bcc0..e48c1ad 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 - * $Id: kern_shutdown.c,v 1.30 1998/05/06 22:14:48 julian Exp $ + * $Id: kern_shutdown.c,v 1.31 1998/05/12 17:34:02 bde Exp $ */ #include "opt_ddb.h" @@ -176,23 +176,8 @@ boot(howto) sle_p ep; #ifdef SMP - int c, spins; - - /* The MPSPEC says that the BSP must do the shutdown */ if (smp_active) { - smp_active = 0; - - spins = 100; - printf("boot() called on cpu#%d\n", cpuid); - while ((c = cpuid) != 0) { - if (spins-- < 1) { - printf("timeout waiting for cpu #0!\n"); - break; - } - printf("I'm on cpu#%d, I need to be on cpu#0, sleeping..\n", c); - tsleep((caddr_t)&smp_active, PZERO, "cpu0wt", 10); - } } #endif /* |