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
* \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