mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
build: convert NR_CPUS to Kconfig
Use CONFIG_NR_CPUS from Kconfig as NR_CPUS instead of the previous MAX_PHYS_CPUS variable from make. Remove the creation of MAX_PHYS_CPUS as well. Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
1 parent
6da11a5ac2
commit
af3eb9bf2f
4 files changed
+3
-15
No files matched your search
@@ -59,9 +59,6 @@ CFLAGS-$(perfc_arrays) += -DPERF_ARRAYS
|
||||
CFLAGS-$(lock_profile) += -DLOCK_PROFILE
|
||||
CFLAGS-$(frame_pointer) += -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER
|
||||
|
||||
ifneq ($(max_phys_cpus),)
|
||||
CFLAGS-y += -DMAX_PHYS_CPUS=$(max_phys_cpus)
|
||||
endif
|
||||
ifneq ($(max_phys_irqs),)
|
||||
CFLAGS-y += -DMAX_PHYS_IRQS=$(max_phys_irqs)
|
||||
endif
|
||||
|
||||
@@ -45,12 +45,6 @@
|
||||
|
||||
#define OPT_CONSOLE_STR "dtuart"
|
||||
|
||||
#ifdef MAX_PHYS_CPUS
|
||||
#define NR_CPUS MAX_PHYS_CPUS
|
||||
#else
|
||||
#define NR_CPUS 128
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARM_64
|
||||
#define MAX_VIRT_CPUS 128
|
||||
#else
|
||||
|
||||
@@ -56,12 +56,6 @@
|
||||
|
||||
#define OPT_CONSOLE_STR "vga"
|
||||
|
||||
#ifdef MAX_PHYS_CPUS
|
||||
#define NR_CPUS MAX_PHYS_CPUS
|
||||
#else
|
||||
#define NR_CPUS 256
|
||||
#endif
|
||||
|
||||
/* Linkage for x86 */
|
||||
#define __ALIGN .align 16,0x90
|
||||
#define __ALIGN_STR ".align 16,0x90"
|
||||
|
||||
@@ -92,4 +92,7 @@
|
||||
#define FLASK_AVC_STATS 1
|
||||
#endif
|
||||
|
||||
/* allow existing code to work with Kconfig variable */
|
||||
#define NR_CPUS CONFIG_NR_CPUS
|
||||
|
||||
#endif /* __XEN_CONFIG_H__ */
|
||||