From patchwork Thu Dec 18 12:00:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 42434 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 874E026C8B for ; Thu, 18 Dec 2014 12:01:30 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf763786eek.9 for ; Thu, 18 Dec 2014 04:01: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=P6dTJs+6Aj8dkVN8nSXHlrZJh1/qAdjoHV+VI6nxXf0=; b=IVwHEzOveOyn13jaQ7rj26scKRW7zePJRHsUYbEBw7QG3Bcyopr8FBg20pYT0OwgTA iOnu3fTpPYiBVZk0UlUir0KwtnL+5GOE1pIjOrmkQ0w8nuoHQJthxVCMYcdcN+RVskAU dywLR2mdD5s2RAayIPjEhOl7O+PVkenG4rnaSwIzjsj3rfFHDYHLqEMiBqf+CITOKEGD zCu6Wk5k8h5tmKHDCcwKEeRBUH6trK7EPSI1SonXLwEq0oi2Ujwq8uoUMFM0QNfL4z4w WbJb9kB0Ktd9hm6Pxg07SPdJJAEWXGlRKDYy0CmW5xXQgLzZlxwl0KE/BIB/gLRsa8sa MCWA== X-Gm-Message-State: ALoCoQnRpqQ2jxvOM+wYhK6BA7l4HKMK4nk7DR8c+qlEzvooYxrsGSR3xeiDguV9MqstjSVcv0A3 X-Received: by 10.180.24.35 with SMTP id r3mr355401wif.0.1418904089809; Thu, 18 Dec 2014 04:01:29 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.134 with SMTP id b6ls991963laa.27.gmail; Thu, 18 Dec 2014 04:01:29 -0800 (PST) X-Received: by 10.112.63.99 with SMTP id f3mr1793908lbs.47.1418904089493; Thu, 18 Dec 2014 04:01:29 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id j5si6611469lbs.110.2014.12.18.04.01.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 04:01:29 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id p9so829645lbv.14 for ; Thu, 18 Dec 2014 04:01:29 -0800 (PST) X-Received: by 10.152.87.12 with SMTP id t12mr1835554laz.31.1418904089400; Thu, 18 Dec 2014 04:01:29 -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.142.69 with SMTP id ru5csp1680450lbb; Thu, 18 Dec 2014 04:01:28 -0800 (PST) X-Received: by 10.67.14.71 with SMTP id fe7mr2702085pad.27.1418904087387; Thu, 18 Dec 2014 04:01:27 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ov3si9608661pbc.228.2014.12.18.04.01.26; Thu, 18 Dec 2014 04:01:27 -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 S1752402AbaLRMB0 (ORCPT + 12 others); Thu, 18 Dec 2014 07:01:26 -0500 Received: from mail-pd0-f172.google.com ([209.85.192.172]:46995 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751706AbaLRMBZ (ORCPT ); Thu, 18 Dec 2014 07:01:25 -0500 Received: by mail-pd0-f172.google.com with SMTP id y13so1315189pdi.3 for ; Thu, 18 Dec 2014 04:01:25 -0800 (PST) X-Received: by 10.68.65.35 with SMTP id u3mr2750640pbs.9.1418904085123; Thu, 18 Dec 2014 04:01:25 -0800 (PST) Received: from localhost ([122.166.148.73]) by mx.google.com with ESMTPSA id wi15sm6699484pac.21.2014.12.18.04.01.23 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 18 Dec 2014 04:01:24 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar Subject: [PATCH 06/13] cpufreq: Remove (now) unused 'last_cpu' from struct cpufreq_policy Date: Thu, 18 Dec 2014 17:30:23 +0530 Message-Id: <82b5546aafebb43a3b87ec86a6dcf4c8d75d6e2b.1418902789.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.169 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. 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 */