From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH 0/4] CPUFreq: Implement per policy instances of governors Date: Mon, 4 Feb 2013 15:09:08 +0100 Message-ID: <20130204140908.GC15452@pd.tnic> References: <5808458.pvV2iHpBWm@vostro.rjw.lan> <20130204123221.GA22340@pd.tnic> <20130204130403.GD13909@pd.tnic> <20130204133648.GE13909@pd.tnic> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1359986957; bh=ot/wk7AT3yV38mDpEhhDu1vS+x/uBvnsAWF6+LqKMTo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=PqSjGMeHPXLO4FXvihZE6SCbICMofRU+8PAcji IBVo7t2A+29suVMBrjw07wct1U4NlvheuBO/fEjz5vkPD7Rvzui0Xzoq+R2I1enh9Wh pGBAu7ZHuBMRr06zTriDOvOds0zHQnbXPyDBdGYSHT6kLESFlDpLAo1Pcvirb3T9Rw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1359986956; bh=ot/wk7AT3yV38mDpEhhDu1vS+x/uBvnsAWF6+LqKMTo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=tlFJHXZR3PLE8huuZH3iVvx2MMCSAr8sYWrdel nGJHF7ViJolp2ilV+JbzfC5qF8iqJ9rIl86lqwlVAgTS44UZeTT7uJopMtAlt0mHqnV gG8vayzuR+Vuwt0CoGJIaxsNeWnMC69NZ9VETCTkMUah44wfEB/2FrYCTWngG2BGjE= Content-Disposition: inline In-Reply-To: Sender: cpufreq-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Viresh Kumar Cc: "Rafael J. Wysocki" , cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-dev@lists.linaro.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com On Mon, Feb 04, 2013 at 07:28:16PM +0530, Viresh Kumar wrote: > All files which are directly present in cpu/cpu*/cpufreq/ folder. I am > not talking about governor tunables but policy tunables. Things like > scaling_[min]max_freq are policy tunables. No, on x86 those are the P-states frequencies. They're defined by the hardware. > Policies don't have a name associated with them and so > cpu/cpufreq/policies doesn't make any sense. Rather one policy is > related to multiple cpus and its tunables are linked in all the cpus > that belong to it, like scaling_[min]max_freq. Then do the following: cpu/cpufreq/policies/ |-> policy0 |-> min_freq |-> max_freq |-> affected_cpus ... or whatever needs to be a flexible interface for multi-policy cpufreq support. Remember: once you do those, they're more or less cast in stone so take your time and do the design right, do not hurry those. > Don't have examples of these, but there can be few. Over that it is a > must for multicluster systems as clusters normally have separate clock > control. Yeah, nice try. We only support real hardware in the kernel, not what could there be. > But then we will get governors tunables in cpu/cpu*/cpufreq/ instead > of cpu/cpufreq/ . Will that not break userspace for other systems? What's wrong with having both? The cpu/cpufreq/ governor will set the system-wide governor and the cpu/cpu*/cpufreq/ will add the different policies. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --