diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2007-08-04 18:50:19 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:12 +0200 |
commit | 2d38d0f995f30c5f04dcc0c10052f6c335f99987 (patch) | |
tree | 2025b98da15b2d4347408725ad8ab876bc0138d2 /linux | |
parent | 5ad5458f9ea2b6fa91f2ee2538aa82f1eead5dfb (diff) | |
download | gnumach-2d38d0f995f30c5f04dcc0c10052f6c335f99987.tar.gz gnumach-2d38d0f995f30c5f04dcc0c10052f6c335f99987.tar.bz2 gnumach-2d38d0f995f30c5f04dcc0c10052f6c335f99987.zip |
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')
-rw-r--r-- | linux/configfrag.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/configfrag.ac b/linux/configfrag.ac index 9c51235d..ff465b2b 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 |