diff options
author | 2010-07-28 15:59:38 +0000 | |
---|---|---|
committer | 2010-07-28 15:59:38 +0000 | |
commit | c4deb38c71ffb07575f7d3cd647c78b52a464452 (patch) | |
tree | 7de68205544afb2ff1fcb55aad7beef706c6de79 | |
parent | suspend save/restore for SIS3112; tested by mlarkin (diff) | |
download | wireguard-openbsd-c4deb38c71ffb07575f7d3cd647c78b52a464452.tar.xz wireguard-openbsd-c4deb38c71ffb07575f7d3cd647c78b52a464452.zip |
It's pretty pointless to peg ourselves to the primary CPU if that's the
only one we have.
ok krw@, deraadt@
-rw-r--r-- | sys/kern/kern_xxx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index abe7c4be0df..594fd72aebb 100644 --- a/sys/kern/kern_xxx.c +++ b/sys/kern/kern_xxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_xxx.c,v 1.16 2010/04/06 20:33:28 kettenis Exp $ */ +/* $OpenBSD: kern_xxx.c,v 1.17 2010/07/28 15:59:38 kettenis Exp $ */ /* $NetBSD: kern_xxx.c,v 1.32 1996/04/22 01:38:41 christos Exp $ */ /* @@ -58,6 +58,7 @@ sys_reboot(struct proc *p, void *v, register_t *retval) if ((error = suser(p, 0)) != 0) return (error); +#ifdef MULTIPROCESSOR /* * Make sure this thread only runs on the primary cpu. */ @@ -68,7 +69,6 @@ sys_reboot(struct proc *p, void *v, register_t *retval) } } -#ifdef MULTIPROCESSOR sched_stop_secondary_cpus(); #endif |