diff options
author | jb <jb@FreeBSD.org> | 2008-03-27 05:03:26 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2008-03-27 05:03:26 +0000 |
commit | 34e730ca273d9bd38d9081bc80c78688c6abdd4c (patch) | |
tree | fab7e3c1d8d06e5b21f4fddec18bc48b6708d26f /sys/arm | |
parent | 2a244be0948ebf54f47b701a69bdc0acbc452299 (diff) | |
download | FreeBSD-src-34e730ca273d9bd38d9081bc80c78688c6abdd4c.zip FreeBSD-src-34e730ca273d9bd38d9081bc80c78688c6abdd4c.tar.gz |
When building a kernel module, define MAXCPU the same as SMP so
that modules work with and without SMP.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/include/param.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/include/param.h b/sys/arm/include/param.h index 4c59eee..8fb8555 100644 --- a/sys/arm/include/param.h +++ b/sys/arm/include/param.h @@ -72,11 +72,11 @@ #endif #define MID_MACHINE MID_ARM6 -#ifdef SMP +#if defined(SMP) || defined(KLD_MODULE) #define MAXCPU 2 #else #define MAXCPU 1 -#endif /* SMP */ +#endif /* SMP || KLD_MODULE */ #define ALIGNBYTES _ALIGNBYTES #define ALIGN(p) _ALIGN(p) |