From patchwork Fri Sep 13 13:00:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20156 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 22E3E20358 for ; Fri, 13 Sep 2013 13:15:09 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id a11sf1220657qen.6 for ; Fri, 13 Sep 2013 06:15:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version: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=r6nJuhCHCQaPuoAiL5vijnJC+7VS+fAD4ZEBU9tBWB4=; b=moAjCuwbKJgsa8JZRhh9Tmq1qP8hnVdI+hTSlxQbi5d0tv1D5UCX9sVIQa4cnmc+OV Pc7PTPsjXTBCFe0iQms4ustoSj001931ce/zWn/J6N6ZyZpr7PTi7pQ9dzvFqWyR/jDC ufsakJcPwSU14bg92lIXSUqXpfoeCUsfSMDFKYfBruAGN5LC/baC1p/qWW5i/u++41gT iqyWrCun+v2URbySSaGO/XaHqaGocS0eOM59ktp3H7YDbCsKkqJMlynS/QPV7/sLzCiw MWc9TJl4NsnqrUX+FR7ymJYMjhJJRE6gCwgRaJSb08GLbPwFbDvUmCp/Mv99dwe7UDrf N4sg== X-Gm-Message-State: ALoCoQnLPF3tgtX8nBLKzl4Dc0e29n2AIAyVh5hOLYs00U7SDiovzbKUDkFo8+bgt/212AX6BLY9 X-Received: by 10.236.125.232 with SMTP id z68mr361790yhh.56.1379078108842; Fri, 13 Sep 2013 06:15:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.85.200 with SMTP id j8ls1120626qez.6.gmail; Fri, 13 Sep 2013 06:15:08 -0700 (PDT) X-Received: by 10.52.157.134 with SMTP id wm6mr5850100vdb.26.1379078108625; Fri, 13 Sep 2013 06:15:08 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id wp10si3087413vdb.136.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id hz10so918296vcb.12 for ; Fri, 13 Sep 2013 06:15:08 -0700 (PDT) X-Received: by 10.220.74.69 with SMTP id t5mr12033366vcj.18.1379078108544; Fri, 13 Sep 2013 06:15:08 -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 u4csp80038vcz; Fri, 13 Sep 2013 06:15:07 -0700 (PDT) X-Received: by 10.66.136.71 with SMTP id py7mr15376472pab.2.1379078107522; Fri, 13 Sep 2013 06:15:07 -0700 (PDT) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id gb4si7463336pbb.30.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.44; Received: by mail-pb0-f44.google.com with SMTP id xa7so1219841pbc.31 for ; Fri, 13 Sep 2013 06:15:07 -0700 (PDT) X-Received: by 10.66.164.136 with SMTP id yq8mr15101232pab.67.1379078107116; Fri, 13 Sep 2013 06:15:07 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id kd1sm18018264pab.20.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:06 -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, linux-arm-kernel@lists.infradead.org, Viresh Kumar Subject: [PATCH 102/228] cpufreq: exynos: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:48 +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.220.181 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(). Acked-By: Amit Daniel Kachhap Acked-by: Kukjin Kim Signed-off-by: Viresh Kumar --- 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 08338d4..5244086 100644 --- a/drivers/cpufreq/exynos-cpufreq.c +++ b/drivers/cpufreq/exynos-cpufreq.c @@ -241,8 +241,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 e33896f..a7d272b 100644 --- a/drivers/cpufreq/exynos5440-cpufreq.c +++ b/drivers/cpufreq/exynos5440-cpufreq.c @@ -329,7 +329,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);