From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932858AbcFHAPx (ORCPT ); Tue, 7 Jun 2016 20:15:53 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:59459 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753712AbcFHAPw (ORCPT ); Tue, 7 Jun 2016 20:15:52 -0400 From: "Rafael J. Wysocki" To: Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, steve.muckle@linaro.org Subject: Re: [PATCH V4 0/2] cpufreq: Sort policy->freq_table Date: Wed, 08 Jun 2016 02:19:51 +0200 Message-ID: <27658050.4ol4GjkJ1n@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.5.0-rc1+; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, June 07, 2016 03:55:13 PM Viresh Kumar wrote: > Hi Rafael, > > I have spent some more time on this stuff and finally came out with a > very simple solution. I hope you will like it more than the previous > versions. > > Instead of trying to sort the freq-table passed by the drivers, which > was complicated and would have broken some drivers for sure, this patch > just checks if the freq-table is sorted or not. > > If it is sorted, then we just use a different set of helpers for it. The > table can be sorted in both ascending and descending orders now and > helpers are present for both the cases. Well, that's something I was thinking about from the start. :-) > All the patches are pushed here for testing in case anyone wants to try: > git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git cpufreq/sorted-freq-table > > V3->V4: > - Written from scratch really, completely different approach. I'll look at the code later this week. Thanks, Rafael