Message ID | fc79e745f14e9b038256de2546817b35b3846314.1519620578.git.viresh.kumar@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4588B60208 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 26 Feb 2018 05:12:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35BB3292DF for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 26 Feb 2018 05:12:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A7B9297C3; Mon, 26 Feb 2018 05:12:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A5777292DF for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 26 Feb 2018 05:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=LeX5LvVRXRztMZt6oeoJm2ob+5Df0N0RJJncvQD8A1w=; b=jVyTCi9xDGB7b6UR/p0zcGEJyo a//+BLk0D4LQAHG0xVpr4B/cdh+QwhajCdbz3dEfKwBMbubP+qEKPVoA2nwnPLWeQ44lFgMd0LRVz Aa5FOAwLv1xF34GcSRjS0Zt4hZJ0jHUi1+hKzArfjcu0YN0bYQ4XdsBIo1OUr1mlbELYWZLTCcu4X 09hhcJg89bx0S6LX5pLbOoMks2PCuscYj/6P/209ut0bAMMzxif81Y9DWzc/h2Nc0vLrxOiXIeW1t fDGo1/RTUx1z6CWV8jX90azeJ8SS3cMvsaVnRiY5FXmhmq/VwO4yky8JTu3LjejNdulogZCmSbqmA Mxfs6b5g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eqB57-0002fA-Fp; Mon, 26 Feb 2018 05:12:09 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqB3X-0000u9-1M for linux-arm-kernel@lists.infradead.org; Mon, 26 Feb 2018 05:10:37 +0000 Received: by mail-pg0-x242.google.com with SMTP id e9so1449134pgs.10 for <linux-arm-kernel@lists.infradead.org>; Sun, 25 Feb 2018 21:10:20 -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=GKWOcNcl+rkljkVs8QNmwW3X4GVmKiHgpum8Jjbbpco=; b=jPIIfl3uCSAESBQUeP9XEivwaua5CnEaYk2bWkT4ZnK6hKkwe3eoxgaN2GVf0w4ezs zw2Yyupd12aYX1b+cLHn8a36fYqWLI+CYwJ6MXJxFukMr/lipuLJiwpW93Cdo5NOK6Cy g7MuduNoxSy5u7miLHmWBK0cCa0bMwi3SEpgA= 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=GKWOcNcl+rkljkVs8QNmwW3X4GVmKiHgpum8Jjbbpco=; b=GhjzAhYB8tZPlbAb6lwCDBzQnG82aYnlqSgdcGLEBRRKMozD4Q6aKoDSOna9KuMdcS Yg+aeQsxaPuyEOZl3LABxu3uKmtA3TuIRmXJPC9u570K613wMNK7/PZ6wsA6vRUmKWDo lFwMoEVKHgUAydid4pPxe7H5wb2AW8UnE/Pq7c4Vob1TmSacdvJCe+uHaKvQdx0Wq/ti dqXexlr+zyATAsZoqATNqKxCL+ZBa99jawdF+a/4yd/M/S63t9ETe4IhbxjE5gxDHlyr xFjxE4A8TRInTE/ORydNYhfdkEnAYBB3kNhXKrRbIC9CYAVregkyyxqXnKBtv396dFVL /FMA== X-Gm-Message-State: APf1xPDaIHzDssLk2GFEZ3AtS3CcxlAr+58EiFTxCn0ZpxeJ9gw76Zqn qbGrokyhG8cf0E6NEbFaP1ITz6ftWwA= X-Google-Smtp-Source: AG47ELvk78Gn3++4BcBpq+UIHfsTibDMZlXP8shP7urVT1gJ4ZNvT06C5v8MPAyIHYPBLETYLfZZ5Q== X-Received: by 10.98.238.2 with SMTP id e2mr1454610pfi.68.1519621820057; Sun, 25 Feb 2018 21:10:20 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id h17sm6362548pfd.64.2018.02.25.21.10.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:10:19 -0800 (PST) From: Viresh Kumar <viresh.kumar@linaro.org> To: Rafael Wysocki <rjw@rjwysocki.net>, Kukjin Kim <kgene@kernel.org>, Krzysztof Kozlowski <krzk@kernel.org> Subject: [PATCH 19/27] cpufreq: s3c24xx: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:39:02 +0530 Message-Id: <fc79e745f14e9b038256de2546817b35b3846314.1519620578.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: <cover.1519620578.git.viresh.kumar@linaro.org> References: <cover.1519620578.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1519620578.git.viresh.kumar@linaro.org> References: <cover.1519620578.git.viresh.kumar@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180225_211032_890846_0A1E4BA8 X-CRM114-Status: GOOD ( 12.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Viresh Kumar <viresh.kumar@linaro.org>, linux-samsung-soc@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org>, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c index 6bebc1f9f55a..3f0947e119a9 100644 --- a/drivers/cpufreq/s3c24xx-cpufreq.c +++ b/drivers/cpufreq/s3c24xx-cpufreq.c @@ -351,11 +351,8 @@ struct clk *s3c_cpufreq_clk_get(struct device *dev, const char *name) static int s3c_cpufreq_init(struct cpufreq_policy *policy) { policy->clk = clk_arm; - policy->cpuinfo.transition_latency = cpu_cur.info->latency; - - if (ftab) - return cpufreq_table_validate_and_show(policy, ftab); + policy->freq_table = ftab; return 0; }
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 s3c24xx driver. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/s3c24xx-cpufreq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)