summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2007-03-02 09:38:16 +0000
committerpjd <pjd@FreeBSD.org>2007-03-02 09:38:16 +0000
commit38868f2cec1b862a3a51e02f4c3836e4644545e2 (patch)
treecbfc5a61fc44be305a54ad9f17a630456e510610 /sys
parente1b1eae5923c01f8e3a48519bd065108ac5fad4d (diff)
downloadFreeBSD-src-38868f2cec1b862a3a51e02f4c3836e4644545e2.zip
FreeBSD-src-38868f2cec1b862a3a51e02f4c3836e4644545e2.tar.gz
Fix geli after last commit for UP systems that are running SMP kernel.
Submitted by: Hyo geol, Lee <hyogeollee@gmail.com> MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/eli/g_eli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c
index 0e5b531..5aefe7a 100644
--- a/sys/geom/eli/g_eli.c
+++ b/sys/geom/eli/g_eli.c
@@ -326,7 +326,8 @@ g_eli_worker(void *arg)
sc = wr->w_softc;
#ifdef SMP
/* Before sched_bind() to a CPU, wait for all CPUs to go on-line. */
- if (sc->sc_crypto == G_ELI_CRYPTO_SW && g_eli_threads == 0) {
+ if (mp_ncpus > 1 && sc->sc_crypto == G_ELI_CRYPTO_SW &&
+ g_eli_threads == 0) {
while (!smp_started)
tsleep(wr, 0, "geli:smp", hz / 4);
}
OpenPOWER on IntegriCloud