From c4deb38c71ffb07575f7d3cd647c78b52a464452 Mon Sep 17 00:00:00 2001 From: kettenis Date: Wed, 28 Jul 2010 15:59:38 +0000 Subject: [PATCH] It's pretty pointless to peg ourselves to the primary CPU if that's the only one we have. ok krw@, deraadt@ --- sys/kern/kern_xxx.c | 4 ++-- 1 file 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 -- 2.20.1