soc: xtensa: fix definition of PLATFORM_CORE_COUNT

Move statement to a multiline statement and avoid build errors.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-10-14 18:46:49 -04:00
commit 411bddf25a

View file

@ -6,15 +6,18 @@
*/ */
/** /**
* \file cavs/lib/cpu.h * DSP parameters, common for cAVS platforms.
* \brief DSP parameters, common for cAVS platforms.
*/ */
#ifndef __CAVS_CPU_H__ #ifndef __CAVS_CPU_H__
#define __CAVS_CPU_H__ #define __CAVS_CPU_H__
/** \brief Number of available DSP cores (conf. by kconfig) */ /** Number of available DSP cores (conf. by kconfig) */
#define PLATFORM_CORE_COUNT (defined(CONFIG_SMP) ? CONFIG_MP_NUM_CPUS : 1) #if defined(CONFIG_SMP)
#define PLATFORM_CORE_COUNT CONFIG_MP_NUM_CPUS
#else
#define PLATFORM_CORE_COUNT 1
#endif
/** Id of master DSP core */ /** Id of master DSP core */
#define PLATFORM_PRIMARY_CORE_ID 0 #define PLATFORM_PRIMARY_CORE_ID 0