From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751644AbcF0E3n (ORCPT ); Mon, 27 Jun 2016 00:29:43 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:32919 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750772AbcF0E3m (ORCPT ); Mon, 27 Jun 2016 00:29:42 -0400 From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, steve.muckle@linaro.org, Viresh Kumar Subject: [PATCH V5 0/2] cpufreq: Sorted policy->freq_table Date: Mon, 27 Jun 2016 09:59:32 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafael, This series is aimed to make traversing of cpufreq table more efficient for platforms that already sort the frequency tables. The cpufreq core now checks if the freq table is sorted and applies a different set of helpers on such tables while traversing them. 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 V4->V4: - s/cpufreq_table_find_index_unsorted/cpufreq_table_index_unsorted - return error for duplicate frequencies - freq-table-sorted is an enum now - Remove freq_is_invalid() and clamp the frequencies at the top of few helpers. - Remove few checks which were impossible to hit (best == -1) Viresh Kumar (2): cpufreq: Handle sorted frequency tables more efficiently cpufreq: Reuse new freq-table helpers drivers/cpufreq/acpi-cpufreq.c | 14 +- drivers/cpufreq/amd_freq_sensitivity.c | 4 +- drivers/cpufreq/cpufreq_ondemand.c | 6 +- drivers/cpufreq/freq_table.c | 73 ++++++++-- drivers/cpufreq/powernv-cpufreq.c | 3 +- drivers/cpufreq/s5pv210-cpufreq.c | 3 +- include/linux/cpufreq.h | 234 ++++++++++++++++++++++++++++++++- 7 files changed, 306 insertions(+), 31 deletions(-) -- 2.7.4