From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756600AbcHXOop (ORCPT ); Wed, 24 Aug 2016 10:44:45 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38442 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754463AbcHXOon (ORCPT ); Wed, 24 Aug 2016 10:44:43 -0400 Subject: Re: [RFC/PATCH 1/2] cpuidle: Allow idle-states to be disabled at start To: "Gautham R. Shenoy" , "Rafael J. Wysocki" , Michael Ellerman , Benjamin Herrenschmidt , Michael Neuling , Paul Mackerras , Vaidyanathan Srinivasan References: <48afad7788300482c047fc35e70ca8e4bf31a5ac.1471557381.git.ego@linux.vnet.ibm.com> Cc: Anton Blanchard , linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org From: Daniel Lezcano Message-ID: <57BDB2D8.4080507@linaro.org> Date: Wed, 24 Aug 2016 16:44:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <48afad7788300482c047fc35e70ca8e4bf31a5ac.1471557381.git.ego@linux.vnet.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/19/2016 12:26 AM, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > Currently all the idle states registered by a cpu-idle driver are > enabled by default. This patch adds a mechanism which allows the > driver to hint if an idle-state should start in a disabled state. The > cpu-idle core will use this hint to appropriately initialize the > usage->disable knob of the CPU device idle state. Why do you need to do that ? > The state can be enabled at run time by echo'ing a zero to the sysfs > "disable" control file. ... for each cpu. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog