mirror of https://github.com/thesofproject/sof.git
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:
parent
d24de27a0c
commit
e437e1cc52
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue