Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753514AbaBLRiF (ORCPT ); Wed, 12 Feb 2014 12:38:05 -0500 Received: from service87.mimecast.com ([91.220.42.44]:54243 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752647AbaBLRiD convert rfc822-to-8bit (ORCPT ); Wed, 12 Feb 2014 12:38:03 -0500 Date: Wed, 12 Feb 2014 17:37:59 +0000 From: Lorenzo Pieralisi To: Arjan van de Ven Cc: Peter Zijlstra , Morten Rasmussen , Nicolas Pitre , Daniel Lezcano , Preeti U Murthy , Len Brown , Preeti Murthy , "mingo@redhat.com" , Thomas Gleixner , "Rafael J. Wysocki" , LKML , "linux-pm@vger.kernel.org" , Lists linaro-kernel Subject: Re: [RFC PATCH 3/3] idle: store the idle state index in the struct rq Message-ID: <20140212173758.GF28661@e102568-lin.cambridge.arm.com> References: <52EBBC23.8020603@linux.intel.com> <52EBC33A.6080101@linaro.org> <52EBC645.2040607@linux.intel.com> <20140203125441.GD19029@e103034-lin> <52EFA9D3.1030601@linux.intel.com> <20140203145605.GL8874@twins.programming.kicks-ass.net> <52EFC12B.50704@linux.intel.com> <20140212151626.GE28661@e102568-lin.cambridge.arm.com> <52FB9DEE.9020200@linux.intel.com> MIME-Version: 1.0 In-Reply-To: <52FB9DEE.9020200@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginalArrivalTime: 12 Feb 2014 17:38:00.0219 (UTC) FILETIME=[2C74F6B0:01CF2819] X-MC-Unique: 114021217380002701 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 12, 2014 at 04:14:38PM +0000, Arjan van de Ven wrote: > > >> sched_cpu_cache_wiped(int llc) > >> > >> that would be very nice for this; the menuidle side knows this > >> for some cases and thus can just call it. This would be a very > >> small and minimal change > > > > What do you mean by "menuidle side knows this for some cases" ? > > You mean you know that some C-state entries imply llc clean/invalidate ? > > in the architectural idle code we can know if the llc got flushed > there's also the per core flags where we know with reasonable certainty > that the per core caches got flushed. Ok, but that's arch specific, not something we can detect from the menu governor in generic code , that's what I wanted to ask because it was not clear. Thanks, Lorenzo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/