From patchwork Wed Aug 14 13:32:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19126 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B7C732390D for ; Wed, 14 Aug 2013 13:34:34 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id ht10sf5969566vcb.9 for ; Wed, 14 Aug 2013 06:34:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=rW6435ioAXyJyZWSuw7vUMEbtFU/jCxbgj2/KDplmhU=; b=i/o/XgVFWFXlf3fI4G89qqGLrwj5hp29SFtAmfCcGenk04sJ1Rb5P/rkxDsdIpBW1x r2KWvbDFveXLTnKBJo5Fz+2GVjtPEmVKD0GGCjvx66trKdanBqKTRNu3av6dEZj0C0ta sVf5NXsS3MrOLC60wigKYhki4SF7hPmMB/TSd/RC2ctSiDpQx3Y7hdlDmyo9YEsBaytS BNzyLUpnvJtHJ/MIaX7qBk4PgJydMoNSBI5qmwv9fk/xeRh7mXTRiXdeEkWazvfym8X5 8WKhpnPV4DueUnUW7g2k5NsbK0ZmD9vDCVfntuOabpV0mE0RvWty3FroF7QglJT7mpWb GKWw== X-Received: by 10.52.176.102 with SMTP id ch6mr2152715vdc.3.1376487274277; Wed, 14 Aug 2013 06:34:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.177 with SMTP id gf17ls3046389qeb.4.gmail; Wed, 14 Aug 2013 06:34:34 -0700 (PDT) X-Received: by 10.220.58.5 with SMTP id e5mr82732vch.52.1376487274182; Wed, 14 Aug 2013 06:34:34 -0700 (PDT) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx.google.com with ESMTPS id y12si11022841vci.114.2013.08.14.06.34.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.47 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.47; Received: by mail-vb0-f47.google.com with SMTP id h10so7474496vbh.6 for ; Wed, 14 Aug 2013 06:34:34 -0700 (PDT) X-Gm-Message-State: ALoCoQlhAmOuWGw9EbTchk3qyXnijY/1h6tWC3fm01E/Xr69K9o1OxFcUqXv3TRmldaPcLn6gQr5 X-Received: by 10.58.45.70 with SMTP id k6mr9836036vem.9.1376487274088; Wed, 14 Aug 2013 06:34:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp213121vcz; Wed, 14 Aug 2013 06:34:33 -0700 (PDT) X-Received: by 10.68.230.131 with SMTP id sy3mr9975916pbc.34.1376487273240; Wed, 14 Aug 2013 06:34:33 -0700 (PDT) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id c10si29374522pav.258.2013.08.14.06.34.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.50; Received: by mail-pa0-f50.google.com with SMTP id fb10so10004720pad.23 for ; Wed, 14 Aug 2013 06:34:32 -0700 (PDT) X-Received: by 10.68.134.202 with SMTP id pm10mr10009290pbb.2.1376487272780; Wed, 14 Aug 2013 06:34:32 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id in2sm47095732pbc.37.2013.08.14.06.34.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:32 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Viresh Kumar , Kukjin Kim Subject: [PATCH 13/37] cpufreq: exynos: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:02 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.47 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Kukjin Kim Signed-off-by: Viresh Kumar Acked-By: Amit Daniel Kachhap Acked-by: Kukjin Kim --- drivers/cpufreq/exynos-cpufreq.c | 2 -- drivers/cpufreq/exynos5440-cpufreq.c | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c index 79b869b..b1db082 100644 --- a/drivers/cpufreq/exynos-cpufreq.c +++ b/drivers/cpufreq/exynos-cpufreq.c @@ -226,8 +226,6 @@ static struct notifier_block exynos_cpufreq_nb = { static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) { - policy->cur = policy->min = policy->max = exynos_getspeed(policy->cpu); - /* set the transition latency value */ policy->cpuinfo.transition_latency = 100000; diff --git a/drivers/cpufreq/exynos5440-cpufreq.c b/drivers/cpufreq/exynos5440-cpufreq.c index 9a5ed485..91a64d6 100644 --- a/drivers/cpufreq/exynos5440-cpufreq.c +++ b/drivers/cpufreq/exynos5440-cpufreq.c @@ -316,7 +316,6 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) return ret; } - policy->cur = dvfs_info->cur_frequency; policy->cpuinfo.transition_latency = dvfs_info->latency; cpumask_setall(policy->cpus);