From 411bddf25ab381c9858b69fd6478f9836102d3db Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 14 Oct 2020 18:46:49 -0400 Subject: [PATCH] soc: xtensa: fix definition of PLATFORM_CORE_COUNT Move statement to a multiline statement and avoid build errors. Signed-off-by: Anas Nashif --- soc/xtensa/intel_adsp/common/include/cavs/cpu.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/soc/xtensa/intel_adsp/common/include/cavs/cpu.h b/soc/xtensa/intel_adsp/common/include/cavs/cpu.h index a3b1a1a3166..ee92814c6ab 100644 --- a/soc/xtensa/intel_adsp/common/include/cavs/cpu.h +++ b/soc/xtensa/intel_adsp/common/include/cavs/cpu.h @@ -6,15 +6,18 @@ */ /** - * \file cavs/lib/cpu.h - * \brief DSP parameters, common for cAVS platforms. + * DSP parameters, common for cAVS platforms. */ #ifndef __CAVS_CPU_H__ #define __CAVS_CPU_H__ -/** \brief Number of available DSP cores (conf. by kconfig) */ -#define PLATFORM_CORE_COUNT (defined(CONFIG_SMP) ? CONFIG_MP_NUM_CPUS : 1) +/** Number of available DSP cores (conf. by kconfig) */ +#if defined(CONFIG_SMP) +#define PLATFORM_CORE_COUNT CONFIG_MP_NUM_CPUS +#else +#define PLATFORM_CORE_COUNT 1 +#endif /** Id of master DSP core */ #define PLATFORM_PRIMARY_CORE_ID 0