cpu: add helper method cpu_is_me()

Adds helper method for checking whether current core
is the one we are looking for.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2020-01-20 15:08:13 +01:00 committed by Liam Girdwood
parent d24de27a0c
commit e437e1cc52
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,11 @@ static inline bool cpu_is_slave(int id)
return id != PLATFORM_MASTER_CORE_ID;
}
static inline bool cpu_is_me(int id)
{
return id == cpu_get_id();
}
static inline void cpu_enable_core(int id)
{
arch_cpu_enable_core(id);