mirror of https://github.com/thesofproject/sof.git
trace: timer_domain: trace args in (un)register
Move also aborted calls to verbose level. Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
This commit is contained in:
parent
8e9df078e1
commit
c1be66930a
|
@ -44,12 +44,15 @@ static int timer_domain_register(struct ll_schedule_domain *domain,
|
||||||
struct timer_domain *timer_domain = ll_sch_domain_get_pdata(domain);
|
struct timer_domain *timer_domain = ll_sch_domain_get_pdata(domain);
|
||||||
int core = cpu_get_id();
|
int core = cpu_get_id();
|
||||||
|
|
||||||
trace_ll("timer_domain_register()");
|
tracev_ll("timer_domain_register()");
|
||||||
|
|
||||||
/* tasks already registered on this core */
|
/* tasks already registered on this core */
|
||||||
if (timer_domain->arg[core])
|
if (timer_domain->arg[core])
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
trace_ll("timer_domain_register domain->type %d domain->clk %d domain->ticks_per_ms %d period %d",
|
||||||
|
domain->type, domain->clk, domain->ticks_per_ms, period);
|
||||||
|
|
||||||
timer_domain->arg[core] = arg;
|
timer_domain->arg[core] = arg;
|
||||||
|
|
||||||
return timer_register(timer_domain->timer, handler, arg);
|
return timer_register(timer_domain->timer, handler, arg);
|
||||||
|
@ -61,12 +64,15 @@ static void timer_domain_unregister(struct ll_schedule_domain *domain,
|
||||||
struct timer_domain *timer_domain = ll_sch_domain_get_pdata(domain);
|
struct timer_domain *timer_domain = ll_sch_domain_get_pdata(domain);
|
||||||
int core = cpu_get_id();
|
int core = cpu_get_id();
|
||||||
|
|
||||||
trace_ll("timer_domain_unregister()");
|
tracev_ll("timer_domain_unregister()");
|
||||||
|
|
||||||
/* tasks still registered on this core */
|
/* tasks still registered on this core */
|
||||||
if (!timer_domain->arg[core] || num_tasks)
|
if (!timer_domain->arg[core] || num_tasks)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
trace_ll("timer_domain_unregister domain->type %d domain->clk %d",
|
||||||
|
domain->type, domain->clk);
|
||||||
|
|
||||||
timer_unregister(timer_domain->timer, timer_domain->arg[core]);
|
timer_unregister(timer_domain->timer, timer_domain->arg[core]);
|
||||||
|
|
||||||
timer_domain->arg[core] = NULL;
|
timer_domain->arg[core] = NULL;
|
||||||
|
@ -124,7 +130,7 @@ struct ll_schedule_domain *timer_domain_init(struct timer *timer, int clk,
|
||||||
struct ll_schedule_domain *domain;
|
struct ll_schedule_domain *domain;
|
||||||
struct timer_domain *timer_domain;
|
struct timer_domain *timer_domain;
|
||||||
|
|
||||||
trace_ll("timer_domain_init(): clk %d, timeout %u", clk, timeout);
|
trace_ll("timer_domain_init clk %d timeout %u", clk, timeout);
|
||||||
|
|
||||||
domain = domain_init(SOF_SCHEDULE_LL_TIMER, clk, false,
|
domain = domain_init(SOF_SCHEDULE_LL_TIMER, clk, false,
|
||||||
&timer_domain_ops);
|
&timer_domain_ops);
|
||||||
|
|
Loading…
Reference in New Issue