From patchwork Fri Sep 13 13:01:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20175 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 289B220358 for ; Fri, 13 Sep 2013 13:17:23 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id db12sf1233571veb.2 for ; Fri, 13 Sep 2013 06:17:22 -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=FB9tBlSL7xbHQJIXDicE7uNMR+VR1As7LniMpN+9paw=; b=PcCb0EV7K2+EMboajpwZrpLPjJCmGs8iisBFNat2R9cQj8utXUYpIiM5o64VJRVpb5 xSxYzWzki5+omKwF6Ldybj74kiLNbfDH++Y6TmMQ17kOuo/41ywC+TWTAglw546RX6kh fKFlVrk7ou5v5P0hJD1ITIPUNUCFHTD1dFnDhBG7SsV7kp7bULjpq0cpq4UzlIqSbZ8r AJT2r0QrR2tFqpWHtapsBFkPfcMlJkppHsnV/Dmysq+jm5GCnqLC93qYQvmKk7IX2D7A fx0ks9UYP++ayDRYB9mULBllQYr1E3rSaLlReKnddiyWVZJhjh2FGqqK1lqFbT6EwR5j 73nQ== X-Gm-Message-State: ALoCoQnKxvL7tJEjnhCQ/ai4J3GZAv1/iJ3HPGK5VrJnlDlUV/oP/S2mpz4Ogr+msDXzgK7Ltekx X-Received: by 10.236.14.100 with SMTP id c64mr5155995yhc.38.1379078242919; Fri, 13 Sep 2013 06:17:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.49 with SMTP id f17ls1165470qey.33.gmail; Fri, 13 Sep 2013 06:17:22 -0700 (PDT) X-Received: by 10.58.235.69 with SMTP id uk5mr11921502vec.17.1379078242703; Fri, 13 Sep 2013 06:17:22 -0700 (PDT) Received: from mail-vb0-f43.google.com (mail-vb0-f43.google.com [209.85.212.43]) by mx.google.com with ESMTPS id rp4si3103267vcb.111.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.43 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.43; Received: by mail-vb0-f43.google.com with SMTP id h11so897424vbh.16 for ; Fri, 13 Sep 2013 06:17:22 -0700 (PDT) X-Received: by 10.52.37.69 with SMTP id w5mr1316632vdj.32.1379078242622; Fri, 13 Sep 2013 06:17:22 -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 u4csp80164vcz; Fri, 13 Sep 2013 06:17:21 -0700 (PDT) X-Received: by 10.66.171.77 with SMTP id as13mr2057925pac.170.1379078241514; Fri, 13 Sep 2013 06:17:21 -0700 (PDT) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx.google.com with ESMTPS id z9si7409225pbf.320.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.43; Received: by mail-pa0-f43.google.com with SMTP id hz10so2516546pad.16 for ; Fri, 13 Sep 2013 06:17:20 -0700 (PDT) X-Received: by 10.68.242.1 with SMTP id wm1mr13483249pbc.57.1379078240609; Fri, 13 Sep 2013 06:17:20 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id a5sm11737724pbw.4.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:20 -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 121/228] cpufreq: sc520_freq: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:31:07 +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.43 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(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/sc520_freq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/sc520_freq.c b/drivers/cpufreq/sc520_freq.c index 8556225..9047ab1 100644 --- a/drivers/cpufreq/sc520_freq.c +++ b/drivers/cpufreq/sc520_freq.c @@ -109,7 +109,6 @@ static int sc520_freq_cpu_init(struct cpufreq_policy *policy) /* cpuinfo and default policy values */ policy->cpuinfo.transition_latency = 1000000; /* 1ms */ - policy->cur = sc520_freq_get_cpu_frequency(0); return cpufreq_table_validate_and_show(policy, sc520_freq_table); }