sched/walt: improve logging in the error paths

Printing CPUs info is useful while going through error paths.

Change-Id: If84794163b6c417d419785fdddd2eed98588f2eb
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
This commit is contained in:
Satya Durga Srinivasu Prabhala 2021-05-27 21:07:37 -07:00 committed by Rishabh Bhatnagar
parent d233af280c
commit 9d8bdac63a

View File

@ -299,7 +299,8 @@ fixup_cumulative_runnable_avg(struct rq *rq,
lockdep_assert_held(&rq->lock);
if (task_rq(p) != rq) {
printk_deferred("WALT-BUG task not on rq\n");
printk_deferred("WALT-BUG task not on rq: task_cpu=%d new_cpu=%d\n",
task_cpu(p), cpu_of(rq));
walt_task_dump(p);
SCHED_BUG_ON(1);
}
@ -3799,7 +3800,8 @@ static void android_rvh_enqueue_task(void *unused, struct rq *rq, struct task_st
/* catch double enqueue */
if (wts->prev_on_rq == 1) {
printk_deferred("WALT-BUG double enqueue detected\n");
printk_deferred("WALT-BUG double enqueue detected: task_cpu=%d new_cpu=%d\n",
task_cpu(p), cpu_of(rq));
walt_task_dump(p);
SCHED_BUG_ON(1);
}
@ -3828,7 +3830,8 @@ static void android_rvh_dequeue_task(void *unused, struct rq *rq, struct task_st
/* catch double deq */
if (wts->prev_on_rq == 2) {
printk_deferred("WALT-BUG double dequeue detected\n");
printk_deferred("WALT-BUG double dequeue detected: task_cpu=%d new_cpu=%d\n",
task_cpu(p), cpu_of(rq));
walt_task_dump(p);
SCHED_BUG_ON(1);
}