summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2024-02-26 12:07:31 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-16 13:41:42 +0200
commit6d6fe13cca9efa1dafb745353ec1a50aca33f9de (patch)
treea6fc5d68a03e2f455d0c88239946014c85ce9a37 /include
parentb09b556e48968317887a11243a5331a7bc00ece5 (diff)
downloadlinux-6d6fe13cca9efa1dafb745353ec1a50aca33f9de.tar.gz
linux-6d6fe13cca9efa1dafb745353ec1a50aca33f9de.tar.bz2
linux-6d6fe13cca9efa1dafb745353ec1a50aca33f9de.zip
smp: Provide 'setup_max_cpus' definition on UP too
commit 3c2f8859ae1ce53f2a89c8e4ca4092101afbff67 upstream. This was already defined locally by init/main.c, but let's make it generic, as arch/x86/kernel/cpu/topology.c is going to make use of it to have more uniform code. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/smp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h
index a80ab58ae3f1..5b977f20c139 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -211,6 +211,8 @@ smp_call_function_any(const struct cpumask *mask, smp_call_func_t func,
static inline void kick_all_cpus_sync(void) { }
static inline void wake_up_all_idle_cpus(void) { }
+#define setup_max_cpus 0
+
#ifdef CONFIG_UP_LATE_INIT
extern void __init up_late_init(void);
static inline void smp_init(void) { up_late_init(); }