Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755474AbcJ1H6G (ORCPT ); Fri, 28 Oct 2016 03:58:06 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:34612 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938643AbcJ1H6D (ORCPT ); Fri, 28 Oct 2016 03:58:03 -0400 Date: Fri, 28 Oct 2016 09:57:59 +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 3/3] sched: Introduce WALT hooks into core and scheduling classes Message-ID: <20161028075759.GW3102@twins.programming.kicks-ass.net> References: <1477638642-17428-1-git-send-email-markivx@codeaurora.org> <1477638642-17428-4-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-4-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: 404 Lines: 13 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.