summaryrefslogtreecommitdiff
path: root/linux/configfrag.ac
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2007-08-04 18:50:19 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:12 +0200
commit2d38d0f995f30c5f04dcc0c10052f6c335f99987 (patch)
tree2025b98da15b2d4347408725ad8ab876bc0138d2 /linux/configfrag.ac
parent5ad5458f9ea2b6fa91f2ee2538aa82f1eead5dfb (diff)
2007-08-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
* configfrag.ac (mach_ncpus): Define to 1. (NCPUS): Set to $mach_ncpus. [$mach_ncpus > 1] (MULTIPROCESSOR): Set to 1. * linux/configfrag.ac [$mach_ncpus > 1] (__SMP__): Define.
Diffstat (limited to 'linux/configfrag.ac')
-rw-r--r--linux/configfrag.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/configfrag.ac b/linux/configfrag.ac
index 9c51235..ff465b2 100644
--- a/linux/configfrag.ac
+++ b/linux/configfrag.ac
@@ -595,6 +595,9 @@ AC_DEFUN([hurd_host_CPU], [
AC_DEFINE([LINUX_DEV], [1], [Linux device drivers.])
# Instead of Mach's KERNEL, Linux uses __KERNEL__. Whee.
AC_DEFINE([__KERNEL__], [1], [__KERNEL__])
+ [if [ $mach_ncpus -gt 1 ]; then]
+ AC_DEFINE([__SMP__], [1], [__SMP__])
+ [fi]
# Set up `asm-SYSTYPE' links.
AC_CONFIG_LINKS([linux/src/include/asm:linux/src/include/asm-$systype