From patchwork Sun Nov 29 08:31:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "pi-cheng.chen" X-Patchwork-Id: 57394 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp803421lbb; Sun, 29 Nov 2015 00:31:50 -0800 (PST) X-Received: by 10.98.65.206 with SMTP id g75mr61307614pfd.105.1448785910689; Sun, 29 Nov 2015 00:31:50 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p70si17059893pfi.231.2015.11.29.00.31.50; Sun, 29 Nov 2015 00:31:50 -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; 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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752069AbbK2Ibt (ORCPT + 11 others); Sun, 29 Nov 2015 03:31:49 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35732 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbbK2Ibt (ORCPT ); Sun, 29 Nov 2015 03:31:49 -0500 Received: by pacej9 with SMTP id ej9so152807965pac.2 for ; Sun, 29 Nov 2015 00:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=P+qzXXroSgR6/FVAJhZ2SuRWQdZ/996iytp6/zbBL7Y=; b=C6h/jmCIuroOiViox1TNSlQ5PC9nVSwzIufp++XyNvg+CsUtmq1wd1G5GGJOCxLso9 KQt4QT50Xhg8rmKLvjy7wKryYJYgVggCurwdGcV5Gaq3M5D3ayjK6ZiU1tvRLptCQOeO wPl4mp6N7+/wh7CyAQAd4vFauSnzWwb+XacKkzn0VwgMDVOgVImm++U7eEsHMC4Px9S+ ZhBsYjr4LtE/sYWBVBWaDZPItnlKcgqu6KHnI25MxKZdDQT4km6LjR8iIqVefLLhtsPt hOCTXBf6av+wCGyrN7PSWHLDQKf4bN+HyTTPpNBeBt/Sp7P7/F6/XUca8cLhXaqpfA4V 81ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=P+qzXXroSgR6/FVAJhZ2SuRWQdZ/996iytp6/zbBL7Y=; b=bDs8UGDV8nU8sOCd1kdMtZOhsIqnyYeK8w4NMmyT0d+V0yW4iaszWJ7OpUTFvoSMpK IJ2SBjFyHDgED3H4KoSlmqllc4O2IjUVeEu9PpW/1Tpi+d494/iv74bz4vtQbyHGZia2 DmFsnGSGbgUMEtQzUhX76NSvh+pFDgvZMtf+nLJp5gPEm0H8E9T+uSEBZLpNjypnBEA8 d1tix6KwwctBS09uMzBclCivp5AiAvJku5JDvoGwRbhRdMCRGPm7t7ja1pilUPlDn4Lt NT12RDp51/smFIByzhFnr7UiwUuDEgPJ4phEI+inPEr4sHAjtP1h7tslnUSgIRuc/yut INUg== X-Gm-Message-State: ALoCoQlxcQ7ZDk8IsVP6KocWVIBg6TIZs0PW/6JER2sCrBpho56sOdPzsQpiT226sQLS8o1k5dyk X-Received: by 10.98.65.2 with SMTP id o2mr61061983pfa.99.1448785908833; Sun, 29 Nov 2015 00:31:48 -0800 (PST) Received: from localhost.localdomain ([124.219.30.17]) by smtp.googlemail.com with ESMTPSA id l84sm2516886pfb.15.2015.11.29.00.31.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Nov 2015 00:31:48 -0800 (PST) From: Pi-Cheng Chen To: Viresh Kumar , Matthias Brugger Cc: Daniel Kurtz , linux-mediatek@lists.infradead.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH 2/4] cpufreq: mt8173: remove redundant regulator_get_voltage() call Date: Sun, 29 Nov 2015 16:31:36 +0800 Message-Id: <1448785898-17838-2-git-send-email-pi-cheng.chen@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448785898-17838-1-git-send-email-pi-cheng.chen@linaro.org> References: <1448785898-17838-1-git-send-email-pi-cheng.chen@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Remove redundant regulator_get_voltage() call to get Vsram value since it will be obtained later at the beginning of voltage tracking loop. Signed-off-by: Pi-Cheng Chen --- drivers/cpufreq/mt8173-cpufreq.c | 1 - 1 file changed, 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Viresh Kumar diff --git a/drivers/cpufreq/mt8173-cpufreq.c b/drivers/cpufreq/mt8173-cpufreq.c index c438109..750cda7 100644 --- a/drivers/cpufreq/mt8173-cpufreq.c +++ b/drivers/cpufreq/mt8173-cpufreq.c @@ -59,7 +59,6 @@ static int mtk_cpufreq_voltage_tracking(struct mtk_cpu_dvfs_info *info, int old_vproc, old_vsram, new_vsram, vsram, vproc, ret; old_vproc = regulator_get_voltage(proc_reg); - old_vsram = regulator_get_voltage(sram_reg); /* Vsram should not exceed the maximum allowed voltage of SoC. */ new_vsram = min(new_vproc + MIN_VOLT_SHIFT, MAX_VOLT_LIMIT);