[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160114194752.GD6357@twins.programming.kicks-ass.net>
Date: Thu, 14 Jan 2016 20:47:52 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Luca Abeni <luca.abeni@...tn.it>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...hat.com>,
Juri Lelli <juri.lelli@....com>
Subject: Re: [RFC 4/8] Improve the tracking of active utilisation
On Thu, Jan 14, 2016 at 04:24:49PM +0100, Luca Abeni wrote:
> + if (!hrtimer_is_queued(timer)) {
> + hrtimer_start(timer, act, HRTIMER_MODE_ABS);
> + }
> +
> + if (hrtimer_active(timer) == 0) {
> + printk("Problem activating inactive_timer!\n");
> + clear_running_bw(dl_se, dl_rq);
> + if (!dl_task(p)) {
> + __dl_clear_params(p);
> + }
> + } else {
> + get_task_struct(p);
Ah, I missed that one. I would suggest putting that right _before_
hrtimer_start(), because hrtimer_start() guarantees the callback will
run.
> + }
Powered by blists - more mailing lists