From patchwork Tue Jan 6 15:39:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 42778 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6A2962055F for ; Tue, 6 Jan 2015 15:40:08 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id p9sf13201047lbv.5 for ; Tue, 06 Jan 2015 07:40:07 -0800 (PST) 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 :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=FKopEfEWfeoqH//7zpckNNo5EFIRT/fUeujdNhTbvz0=; b=a1c6dw5Pleymx4PS9abWy8OJUHiQ/dcb9n5tdPxUs3pF5sSc+hFzemLkI3mIel05bf PeMVuchTSG2quHFoC28YTb80vN5b7r2savFym0G7KBJTdYBlkHsnCT+9x2lALwehDc3i BkNPUW7KVyRJOZjR65m33d3jKQI8QpTkRD2ahmInVr7DwV+hj+hSNnOQ+wZt+hfFl0Kl b2MehjzF5gT6RephrtR+JeK50+VcYUOqaLYgsr8LXhgs7Uq9lLgvn/Rv4kZ6sC7dyMmT ZAHHK3hCsM5SwLyBles/JCS7ZsACCIDOzJCdoC9YYZEWW5s7GxM2H+pe5hy6Xzu4bHkR Rmpg== X-Gm-Message-State: ALoCoQmCVVPixXGUyFpb/uiodydQpgW/Nq24jMdxlOsTTEt0buv65gTPT/gHFsiP8x0aiPZtghhN X-Received: by 10.181.13.147 with SMTP id ey19mr2292462wid.2.1420558807336; Tue, 06 Jan 2015 07:40:07 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.228 with SMTP id uh4ls49179lac.108.gmail; Tue, 06 Jan 2015 07:40:07 -0800 (PST) X-Received: by 10.112.235.137 with SMTP id um9mr100835324lbc.41.1420558807168; Tue, 06 Jan 2015 07:40:07 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id t10si66358776lae.53.2015.01.06.07.40.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Jan 2015 07:40:07 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id gf13so20449077lab.35 for ; Tue, 06 Jan 2015 07:40:07 -0800 (PST) X-Received: by 10.152.197.5 with SMTP id iq5mr100111387lac.6.1420558807050; Tue, 06 Jan 2015 07:40:07 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp1209602lbb; Tue, 6 Jan 2015 07:40:06 -0800 (PST) X-Received: by 10.66.249.99 with SMTP id yt3mr144835162pac.59.1420558805063; Tue, 06 Jan 2015 07:40:05 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hz4si17325227pbb.8.2015.01.06.07.40.04; Tue, 06 Jan 2015 07:40:05 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755366AbbAFPkD (ORCPT + 12 others); Tue, 6 Jan 2015 10:40:03 -0500 Received: from mail-pd0-f178.google.com ([209.85.192.178]:56300 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754388AbbAFPkC (ORCPT ); Tue, 6 Jan 2015 10:40:02 -0500 Received: by mail-pd0-f178.google.com with SMTP id r10so30452846pdi.23 for ; Tue, 06 Jan 2015 07:40:01 -0800 (PST) X-Received: by 10.70.37.4 with SMTP id u4mr119865105pdj.40.1420558801890; Tue, 06 Jan 2015 07:40:01 -0800 (PST) Received: from localhost ([122.167.212.196]) by mx.google.com with ESMTPSA id k4sm57230841pbq.74.2015.01.06.07.40.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 06 Jan 2015 07:40:01 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, prarit@redhat.com, skannan@codeaurora.org, Viresh Kumar Subject: [PATCH V3 09/16] cpufreq: Remove (now) unused 'last_cpu' from struct cpufreq_policy Date: Tue, 6 Jan 2015 21:09:08 +0530 Message-Id: <7232c5e26ffa4cef447dbeed344249d673201330.1420558386.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.2.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 'last_cpu' was used only from cpufreq-stats and isn't used anymore. Get rid of it. Reviewed-by: Prarit Bhargava Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 3 --- include/linux/cpufreq.h | 2 -- 2 files changed, 5 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index a09a29c312a9..b88894578fd1 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1091,10 +1091,7 @@ static int update_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu, } down_write(&policy->rwsem); - - policy->last_cpu = policy->cpu; policy->cpu = cpu; - up_write(&policy->rwsem); blocking_notifier_call_chain(&cpufreq_policy_notifier_list, diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 60b7b496565d..7e1a389b4e92 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -66,8 +66,6 @@ struct cpufreq_policy { unsigned int shared_type; /* ACPI: ANY or ALL affected CPUs should set cpufreq */ unsigned int cpu; /* cpu nr of CPU managing this policy */ - unsigned int last_cpu; /* cpu nr of previous CPU that managed - * this policy */ struct clk *clk; struct cpufreq_cpuinfo cpuinfo;/* see above */