From 5954ea1c65ba7d92a38b734779941fcfdb098e23 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Wed, 6 Jul 2022 10:58:46 +0200 Subject: [PATCH] arch: arm64: core: smp: use DT_FOREACH_CHILD_STATUS_OKAY_SEP Avoid auxiliary macros by using DT_FOREACH_CHILD_STATUS_OKAY_SEP. Signed-off-by: Gerard Marull-Paretas --- arch/arm64/core/smp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm64/core/smp.c b/arch/arm64/core/smp.c index 3beb745127..ecbd8f6ccc 100644 --- a/arch/arm64/core/smp.c +++ b/arch/arm64/core/smp.c @@ -44,10 +44,8 @@ volatile struct boot_params __aligned(L1_CACHE_BYTES) arm64_cpu_boot_params = { .mpid = -1, }; -#define CPU_REG_ID(cpu_node_id) DT_REG_ADDR(cpu_node_id), - static const uint64_t cpu_node_list[] = { - DT_FOREACH_CHILD_STATUS_OKAY(DT_PATH(cpus), CPU_REG_ID) + DT_FOREACH_CHILD_STATUS_OKAY_SEP(DT_PATH(cpus), DT_REG_ADDR, (,)) }; static uint16_t target_list_mask;