Commit 9b1f48d4 authored by Juri Lelli's avatar Juri Lelli
Browse files

debug: minor changes in trace_printks



Signed-off-by: default avatarJuri Lelli <juri.lelli@arm.com>
parent 90b5125b
......@@ -235,7 +235,8 @@ void cap_gov_kick_thread(int cpu)
if (atomic_read(&gd->need_wake_task)) {
trace_printk("waking up kthread (%d)", gd->task->pid);
cap_gov_wake_up_process(gd->task);
}
} else
trace_printk("NOT waking up kthread (%d)", gd->task->pid);
out:
cpufreq_cpu_put(policy);
......
......@@ -4316,7 +4316,7 @@ enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags)
add_nr_running(rq, 1);
}
trace_printk("trigger cap_gov for CPU%d", cpu_of(rq));
trace_printk("task %d queued -> trigger cap_gov for CPU%d", p->pid, cpu_of(rq));
cap_gov_update_cpu(cpu_of(rq));
hrtick_update(rq);
......@@ -4381,7 +4381,7 @@ static void dequeue_task_fair(struct rq *rq, struct task_struct *p, int flags)
update_rq_runnable_avg(rq, 1);
}
trace_printk("trigger cap_gov for CPU%d", cpu_of(rq));
trace_printk("task %d dequeued -> trigger cap_gov for CPU%d", p->pid, cpu_of(rq));
cap_gov_update_cpu(cpu_of(rq));
hrtick_update(rq);
......@@ -8426,6 +8426,7 @@ static void run_rebalance_domains(struct softirq_action *h)
* locking prevents us from changing cpu frequency with rq locks held
* and interrupts disabled
*/
trace_printk("CPU%d -> kick cap_gov kthread", cpu_of(this_rq));
cap_gov_kick_thread(cpu_of(this_rq));
}
......@@ -8481,7 +8482,7 @@ static void task_tick_fair(struct rq *rq, struct task_struct *curr, int queued)
update_rq_runnable_avg(rq, 1);
trace_printk("trigger cap_gov for CPU%d", cpu_of(rq));
trace_printk("task %d tick -> trigger cap_gov for CPU%d", curr->pid, cpu_of(rq));
cap_gov_update_cpu(cpu_of(rq));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment