From patchwork Fri Jan 2 05:46:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 42664 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AEB5126CB5 for ; Fri, 2 Jan 2015 05:47:29 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id r20sf10398534wiv.9 for ; Thu, 01 Jan 2015 21:47:29 -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=SjxdpTdUAJp1IMWXAxoytfmMmmGtxda66PrY7V8QfnU=; b=Vn0CNRVXtExFaKY1C88XYzTug4KA5zirac1ZRnyge0Po6P/T5cWOpHEvTnqOk15Hp3 0AAyx9AGDv9F/ZVqRylAL6NNJ9sZREaQoNP7zd4YPVreJj7bXC+nVl5rqm+77K7aFYvF mbNzS9B8fI+GS4rlkJ++eLMC7crZienibFnqRMos82w7hQ7muVQdNuaFOE/9jssRRqiN iiH9oAftNmdgu1nW8ivo6QkYSz1MXuP3Fju86FYu2UHt9oJT/VQZL4MQgZl/r6zrbAXB Ka6Y++DY+/A0jqZeCHcnezMRojlO8vmBogP1c0RbvpVQq6JUmFp/qFZEmentdeeQiquA TkTQ== X-Gm-Message-State: ALoCoQlEBT2luuRzzqmtJP6KpgW5FQ6yu02fintNQZYaZP0vu3vmY06ZjaY3D5s8ieuyUY1ZsW7G X-Received: by 10.180.105.97 with SMTP id gl1mr7867514wib.7.1420177649019; Thu, 01 Jan 2015 21:47:29 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.203 with SMTP id ug11ls912458lac.67.gmail; Thu, 01 Jan 2015 21:47:28 -0800 (PST) X-Received: by 10.152.5.226 with SMTP id v2mr74584968lav.34.1420177648736; Thu, 01 Jan 2015 21:47:28 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id p7si50267798lae.87.2015.01.01.21.47.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Jan 2015 21:47:28 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id l4so14521611lbv.25 for ; Thu, 01 Jan 2015 21:47:28 -0800 (PST) X-Received: by 10.112.14.6 with SMTP id l6mr75279032lbc.91.1420177648648; Thu, 01 Jan 2015 21:47:28 -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 c8csp114468lbb; Thu, 1 Jan 2015 21:47:27 -0800 (PST) X-Received: by 10.70.37.35 with SMTP id v3mr119078884pdj.4.1420177646816; Thu, 01 Jan 2015 21:47:26 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si68097479pdc.177.2015.01.01.21.47.25; Thu, 01 Jan 2015 21:47:26 -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 S1750723AbbABFrZ (ORCPT + 12 others); Fri, 2 Jan 2015 00:47:25 -0500 Received: from mail-pd0-f170.google.com ([209.85.192.170]:49310 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbbABFrY (ORCPT ); Fri, 2 Jan 2015 00:47:24 -0500 Received: by mail-pd0-f170.google.com with SMTP id v10so23134514pde.15 for ; Thu, 01 Jan 2015 21:47:24 -0800 (PST) X-Received: by 10.66.66.203 with SMTP id h11mr68755151pat.131.1420177644420; Thu, 01 Jan 2015 21:47:24 -0800 (PST) Received: from localhost ([122.167.116.151]) by mx.google.com with ESMTPSA id mb9sm16713288pdb.40.2015.01.01.21.47.23 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Jan 2015 21:47:23 -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 V2 06/14] cpufreq: Remove (now) unused 'last_cpu' from struct cpufreq_policy Date: Fri, 2 Jan 2015 11:16:43 +0530 Message-Id: <40ee1c730bd00fd8159bf61ce16a807d000e257b.1420177186.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.217.180 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 3cb097b86d20..2d99f12e4199 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 */