Re: [RFC PATCH 3/3] sched: Introduce WALT hooks into core and scheduling classes
From: Peter Zijlstra
Date: Fri Oct 28 2016 - 03:58:09 EST
On Fri, Oct 28, 2016 at 12:10:42AM -0700, Vikram Mulukutla wrote:
> @@ -2072,13 +2078,19 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
> */
> smp_cond_load_acquire(&p->on_cpu, !VAL);
>
> + raw_spin_lock(&task_rq(p)->lock);
> + walt_update_task_ravg(p, task_rq(p), TASK_WAKE, walt_ktime_clock(), 0);
> + raw_spin_unlock(&task_rq(p)->lock);
> +
Lol. funny that.
No.