bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] configfrag: fix usage of mach_ncpus before his definition


From: Etienne Brateau
Subject: [PATCH] configfrag: fix usage of mach_ncpus before his definition
Date: Tue, 19 Nov 2024 20:10:48 +0100

---
 configfrag-first.ac | 11 +++++++++++
 configfrag.ac       | 11 -----------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/configfrag-first.ac b/configfrag-first.ac
index 5dc0db2c..22e34af8 100644
--- a/configfrag-first.ac
+++ b/configfrag-first.ac
@@ -23,6 +23,17 @@ nlpr=0
 AC_ARG_ENABLE([pae],
   AS_HELP_STRING([--enable-pae], [PAE support (ix86-only); on i386-at disabled
     by default, otherwise enabled by default]))
+
+# Multiprocessor support is still broken.
+AH_TEMPLATE([MULTIPROCESSOR], [set things up for a uniprocessor])
+AC_ARG_ENABLE([ncpus],
+  AS_HELP_STRING([--enable-ncpus=N], [specify the maximum number of cpus to be 
supported]),
+  [mach_ncpus=$enable_ncpus],
+  [mach_ncpus=1])
+AC_DEFINE_UNQUOTED([NCPUS], [$mach_ncpus], [number of CPUs])
+[if [ $mach_ncpus -gt 1 ]; then]
+  AC_DEFINE([MULTIPROCESSOR], [1], [set things up for a multiprocessor])
+[fi]
 
 dnl Local Variables:
 dnl mode: autoconf
diff --git a/configfrag.ac b/configfrag.ac
index b8b41261..d38519f6 100644
--- a/configfrag.ac
+++ b/configfrag.ac
@@ -43,17 +43,6 @@ AC_DEFINE_UNQUOTED([NLPR], [$nlpr], [NLPR])
 # Used in `kern/bootstrap.c'.
 AC_DEFINE([BOOTSTRAP_SYMBOLS], [0], [BOOTSTRAP_SYMBOLS])
 
-# Multiprocessor support is still broken.
-AH_TEMPLATE([MULTIPROCESSOR], [set things up for a uniprocessor])
-AC_ARG_ENABLE([ncpus],
-  AS_HELP_STRING([--enable-ncpus=N], [specify the maximum number of cpus to be 
supported]),
-  [mach_ncpus=$enable_ncpus],
-  [mach_ncpus=1])
-AC_DEFINE_UNQUOTED([NCPUS], [$mach_ncpus], [number of CPUs])
-[if [ $mach_ncpus -gt 1 ]; then]
-  AC_DEFINE([MULTIPROCESSOR], [1], [set things up for a multiprocessor])
-[fi]
-
 # Restartable Atomic Sequences to get a really fast test-n-set.  Can't be
 # enabled, as the `void recover_ras()' function is missing.
 AC_DEFINE([FAST_TAS], [0], [FAST_TAS])
-- 
2.47.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]