That file should contain code and data used during initialisation only.
Mark it as such in build system and correctly annotate enabled_cpus.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
obj-y += lib.o
-obj-y += boot.o
+obj-y += boot.init.o
#include <asm/setup.h>
/* Processors with enabled flag and sane MPIDR */
-static unsigned int enabled_cpus = 1;
+static unsigned int __initdata enabled_cpus = 1;
static bool __initdata bootcpu_valid;
/* total number of cpus in this system */