[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160114191238.GA6357@twins.programming.kicks-ass.net>
Date: Thu, 14 Jan 2016 20:12:38 +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 5/8] Track the "total rq utilisation" too
On Thu, Jan 14, 2016 at 04:24:50PM +0100, Luca Abeni wrote:
> + if (dl_rq->running_bw > dl_rq->this_bw) {
> + WARN_ON(1);
> + dl_rq->running_bw = dl_rq->this_bw;
> + }
FWIW you can write this as:
if (WARN_ON(dl_rq->running_bw > dl_rq->this_bw))
dl_rq->running_bw = dl_rq->this_bw;
Powered by blists - more mailing lists