mirror of https://github.com/thesofproject/sof.git
ll_schedule_domain: add flag to store the enabled cores
The flag registered_cores was created to denote the number of registered cores, but it is also used as the number of the enabled cores today. Here add a new flag enabled_cores for the former purpose to remove the confusion and help for the subsequent domain tasks/cores management refinement. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
parent
364ee49c53
commit
8bfcdcfb55
|
@ -46,6 +46,7 @@ struct ll_schedule_domain {
|
|||
spinlock_t lock; /**< standard lock */
|
||||
atomic_t total_num_tasks; /**< total number of registered tasks */
|
||||
atomic_t registered_cores; /**< number of registered cores */
|
||||
atomic_t enabled_cores; /**< number of enabled cores */
|
||||
uint32_t ticks_per_ms; /**< number of clock ticks per ms */
|
||||
int type; /**< domain type */
|
||||
int clk; /**< source clock */
|
||||
|
@ -90,6 +91,7 @@ static inline struct ll_schedule_domain *domain_init
|
|||
spinlock_init(&domain->lock);
|
||||
atomic_init(&domain->total_num_tasks, 0);
|
||||
atomic_init(&domain->registered_cores, 0);
|
||||
atomic_init(&domain->enabled_cores, 0);
|
||||
|
||||
return domain;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue