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:
Doug Goldstein authored and Jan Beulich committed 2016-01-14 10:36:40 +01:00
1 parent 6da11a5ac2
commit af3eb9bf2f
4 files changed
+3 -15

No files matched your search

-3
View File
@@ -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
-6
View File
@@ -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
-6
View File
@@ -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"
+3
View File
@@ -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__ */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.