aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2007-03-02 09:38:16 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2007-03-02 09:38:16 +0000
commitb94209396164b12f5c70745b06ec984af7f79866 (patch)
treecbfc5a61fc44be305a54ad9f17a630456e510610
parentc66d7606085f10c4c1ff5004418ac675c237251a (diff)
downloadsrc-b94209396164b12f5c70745b06ec984af7f79866.tar.gz
src-b94209396164b12f5c70745b06ec984af7f79866.zip
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
Notes
Notes: svn path=/head/; revision=167164
-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 0e5b53108c97..5aefe7a338c9 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);
}