From patchwork Mon Feb 26 05:09:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 129546 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3230715lja; Sun, 25 Feb 2018 21:10:25 -0800 (PST) X-Google-Smtp-Source: AH8x224BR3Bhxf4yGH3ar4fz6mo3acsXHofwisNxreOjYVmvg1au/NlzhpA2yPBQg1asnnSvfi12 X-Received: by 2002:a17:902:8302:: with SMTP id bd2-v6mr9122242plb.295.1519621824923; Sun, 25 Feb 2018 21:10:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519621824; cv=none; d=google.com; s=arc-20160816; b=Xds1W7DMioOrDSQPF+NA2wG/RCV8mVaRgDbaWWROuU6N+87BFM783BgP00gEV9RInm MEffhQGNxoSt/omQLaPNTmJFD1qmPwKl5uym6LvO3cZwYr5OLE903LgY8lICZ0Lu1+aT olEpj0gb7LLKnzE4iGQZ6X94CGbHkwrqFTym1z5txXDIj0PlsK/hSJLSxyizNdAxyh9E jSMMr9xiAExa3JFe3pq6sadMzWNhD1eOmqqUvrx42wsCHYBobuXRAx4rvGRHfMrnNVtm eYtuia0OjyihL2t7xv370k94uWVvJTQvpjTDTn7bYFKvW6YJWRUgcmaSR8a8GvEcNYET ghEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=uexsEejaqILmf4ZtdkSAZqeKDu7niqeAJdapu8BF/q0=; b=m6DdnbjrFKpiQ+D04fyiUPQ+y9+5BYp1Eu5uD1ClxOcEWwItcHCUXe0uM6k0434mc5 91+RV/6Sg48oXgpFT4NF+e80FzVPEdtQeFPPgdUeXDbKB269YzPDPbib1xJKLDgaaAdj VzU17vN0Y6hxBB4LfWZOcqhT9WMkhJU2t6mUvv/vBIMNTnCbInh9nDETWRJQz83A0AVp BT2bpAaLOJSp+jeUNtBrjEIKbS9nByJMpkhlBR0MfrWH9O3+ZdutXxy5VLGcR7AMHf/w 0iz5NuVD4PmVG9nSB8CsCqIKGDtHdUZ9Xo7U+qwz02+Cyg/DNOPEBPnYjkQKPuDtQs+t t6EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SEW+mDBi; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h32-v6si6199354pld.217.2018.02.25.21.10.24; Sun, 25 Feb 2018 21:10:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SEW+mDBi; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751175AbeBZFKY (ORCPT + 11 others); Mon, 26 Feb 2018 00:10:24 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:41469 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968AbeBZFKX (ORCPT ); Mon, 26 Feb 2018 00:10:23 -0500 Received: by mail-pl0-f68.google.com with SMTP id k8so8651353pli.8 for ; Sun, 25 Feb 2018 21:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=uexsEejaqILmf4ZtdkSAZqeKDu7niqeAJdapu8BF/q0=; b=SEW+mDBilzPlZr9ffiBWE/jkZ+E9WgTwi1oDYrXQTlmMOnl5JYoWA6sJkzeGBfbdtv YNj0JEmlWyhP/VwTfJR2qgOs/g9x+qV0Z3UAqupokMD/vpjI5Z8fY3NZ3332s9+De9mg hCjDxoICe+IWvf4ytMgFlAmd59j+UJmnsioro= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=uexsEejaqILmf4ZtdkSAZqeKDu7niqeAJdapu8BF/q0=; b=WWi/vZhxBgLJ8IP9fcbNB7+Xf1FvI0c+VGKsERkIIoAFA9ocIw0IcPYYYEclhm4X3X 2fZLZHsfWsxpwBHKof7bj+JqqMXYwg7gA6TfAQlNceJhDeMpEqobWjSn/Qo6wJNSFlWi GVSwBI6RpLyZy9Vl85Q5q6Vfhw3FR6fUIg3/AA7rHtwcdLE3ZBYMvOwMKL+KTTMyqkPR lkwnUYOctMBQZLvJviBaPLkL8QvkSfXrhPy5q/Z6PkBY8iV4/2kMTXcEFUZeLIfw+v/n wrb+RFpqXxu/UIgvDX7Bv4zfRYylhn2sI3phRkDgo93S4rmAmy5X9snGAQ6FxFhY2lSv Ydyw== X-Gm-Message-State: APf1xPDJAkBq60meOz6WcHnNGx5Qbd5ayki58qFlaWIWcONSidFombZN 4Do7RDSxqDUlcDVWI5qqPgsamBptqHU= X-Received: by 2002:a17:902:128c:: with SMTP id g12-v6mr9442838pla.85.1519621822697; Sun, 25 Feb 2018 21:10:22 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id j64sm17036982pfe.68.2018.02.25.21.10.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:10:22 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot Subject: [PATCH 20/27] cpufreq: sc520: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:39:03 +0530 Message-Id: <9ba3ed6f58409704e1ac82d81c5eaf3cbd423f35.1519620578.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The cpufreq core is already validating the CPU frequency table after calling the ->init() callback of the cpufreq drivers and the drivers don't need to do the same anymore. Though they need to set the policy->freq_table field directly from the ->init() callback now. Stop validating the frequency table from sc520 driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/sc520_freq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.15.0.194.g9af6a3dea062 diff --git a/drivers/cpufreq/sc520_freq.c b/drivers/cpufreq/sc520_freq.c index 4225501a4b78..abaa75e86148 100644 --- a/drivers/cpufreq/sc520_freq.c +++ b/drivers/cpufreq/sc520_freq.c @@ -83,8 +83,9 @@ static int sc520_freq_cpu_init(struct cpufreq_policy *policy) /* cpuinfo and default policy values */ policy->cpuinfo.transition_latency = 1000000; /* 1ms */ + policy->freq_table = sc520_freq_table; - return cpufreq_table_validate_and_show(policy, sc520_freq_table); + return 0; }