[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 35/37] xen/arm: use CONFIG_NUMA to gate node_online_map in smpboot
- To: <wei.chen@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <sstabellini@xxxxxxxxxx>, <julien@xxxxxxx>
- From: Wei Chen <wei.chen@xxxxxxx>
- Date: Thu, 23 Sep 2021 20:02:34 +0800
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=OBYQYm/pE+7ohJdCVC0uw11MJGdKCfmbO+hBvil1Eag=; b=LhrpmwfiJ3xmDxN/rpfowx0FJexczaBxPSBA48XHWxa+YxWk3mR4C/+3Agj5+pSLZgU2xqQZhfvSW97sy46X+XHjwqEpFF3HLgHdrceiiDIHZLgYT1iB6DssrKHa1yheSSLHGcle+3fVEE7F/3YnXKaCDaa117QVFGeJ5kRzp9ww8IS63igxp9lIu96rtlhHblTjTuTaboqvcrZYAj8cqA9J8cIa5apuFadnrEJdZBJEqytOhyiEko/8/w1l/TtWPTdvtmVpUbv7mTwy+nxyV8QxwRQBwGKfoa6JhTE9FotS2OzKNln3wRHB0eHAFr8JXPtCm2weYT91Gt6LMpATYw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bxmzv4vZ3Wo/M+nyvaghH+LMqBD6Spae6W87H77piFdNmP8ojXeERFHHBbdEmkh2/IWi9W5744C70g0YwzMme+YjsSIUdzm9fQj0McB4Hy0Ob9nK3vkGqxpOP1s0rFKAzCKeZ0zuqIpILL/elNVaMEDpTrZ6vsjLtl+5C1/Hr+Gdd/xZqiW/GGl/9mB2DhRG2/ziJhIi275xbQpuDCZ1hz7B7OsPr+gQtpq44HJfhQUPy/Jj7fz4AWl1MloPrwwFBQbzG1sv9ajPmeTulZ2CZjDyiB6E+g2lX66fI0HKQq/YQ+6p1LrKuh22zvFo99od1A8ZhgfDxUZ7dxjP7V1ghw==
- Cc: <Bertrand.Marquis@xxxxxxx>
- Delivery-date: Thu, 23 Sep 2021 12:07:07 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
node_online_map in smpboot still need for Arm when NUMA is turn
off by Kconfig.
Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
---
xen/arch/arm/smpboot.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c
index 6e3cc8d3cc..216c8144b4 100644
--- a/xen/arch/arm/smpboot.c
+++ b/xen/arch/arm/smpboot.c
@@ -46,8 +46,10 @@ struct cpuinfo_arm cpu_data[NR_CPUS];
/* CPU logical map: map xen cpuid to an MPIDR */
register_t __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] = MPIDR_INVALID };
+#ifndef CONFIG_NUMA
/* Fake one node for now. See also include/asm-arm/numa.h */
nodemask_t __read_mostly node_online_map = { { [0] = 1UL } };
+#endif
/* Xen stack for bringing up the first CPU. */
static unsigned char __initdata cpu0_boot_stack[STACK_SIZE]
--
2.25.1
|