Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758666AbcJ1HiI (ORCPT ); Fri, 28 Oct 2016 03:38:08 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45858 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756158AbcJ1HiH (ORCPT ); Fri, 28 Oct 2016 03:38:07 -0400 Date: Fri, 28 Oct 2016 09:38:04 +0200 From: Peter Zijlstra To: Vikram Mulukutla Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Srivatsa Vaddagiri , Steve Muckle , Olav Haugan , Syed Rameez Mustafa , Joonwoo Park , Pavankumar Kondeti , Saravana Kannan , Bryan Huntsman , Juri Lelli , Morten Rasmussen , Dietmar Eggemann , Chris Redpath , Robin Randhawa , Patrick Bellasi , Todd Kjos , Srinath Sridharan , Andres Oportus , Leo Yan , Vincent Guittot , Vikram Mulukutla Subject: Re: [RFC PATCH 2/3] sched: Introduce Window-Assisted CPU utilization Tracking Message-ID: <20161028073804.GR3102@twins.programming.kicks-ass.net> References: <1477638642-17428-1-git-send-email-markivx@codeaurora.org> <1477638642-17428-3-git-send-email-markivx@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1477638642-17428-3-git-send-email-markivx@codeaurora.org> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 308 Lines: 11 On Fri, Oct 28, 2016 at 12:10:41AM -0700, Vikram Mulukutla wrote: > +static int cpu_is_waiting_on_io(struct rq *rq) > +{ > + if (!walt_io_is_busy) > + return 0; > + > + return atomic_read(&rq->nr_iowait); > +} This is just drug induced nonsense. The per-cpu nr_iowait number is completely without meaning.