From patchwork Tue Jan 6 15:39:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 42779 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A6C2A2055F for ; Tue, 6 Jan 2015 15:40:11 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf13240179wgh.9 for ; Tue, 06 Jan 2015 07:40:10 -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=x9/gGpnZmDXRufZ4cBQaBymB4sY448qLyjEmSHhjF38=; b=e7pIVpybyRGSXlSPLC/bdrGQytYdWPLbPofZ5i4X1du1PGfz6btsRYCTFmb5smoD7o eGuNSc4D/yWQlrl2OzApoSLRq33dG1ED3eBmB4dK6XJQigM0oakiGmFIAfRnX1YJj/+2 JtbetBO8OckxdWU3QJrl7YVg2TsAypmGKk7iT8UqziNOEjF9x2g3CDOshjsLfHAGI4LH d/ML2TplohJ6zcphZrrf/5PqwaX1D/M0dRQwyFcPVjYN3qWB+e7feDIQc8sogHmwb482 00uD78xnPxmVKhSU35Zq+vENdYEN1icEuCEthcNjTB+SQjtQSij5oHkUNux9iNTjNugG XpQA== X-Gm-Message-State: ALoCoQnsrlhxd+KZy1SwAfAB4W04d4LHKEGVypLqo9EG9+P4cCYxVsO9XpttoxU58fUnoTHCOTzf X-Received: by 10.112.13.161 with SMTP id i1mr5192lbc.20.1420558810924; Tue, 06 Jan 2015 07:40:10 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.202 with SMTP id u10ls41338lau.68.gmail; Tue, 06 Jan 2015 07:40:10 -0800 (PST) X-Received: by 10.152.5.38 with SMTP id p6mr100623992lap.91.1420558810779; Tue, 06 Jan 2015 07:40:10 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id zl8si56216694lbb.27.2015.01.06.07.40.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Jan 2015 07:40:10 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id u10so1131678lbd.27 for ; Tue, 06 Jan 2015 07:40:10 -0800 (PST) X-Received: by 10.152.7.229 with SMTP id m5mr101430509laa.80.1420558810688; Tue, 06 Jan 2015 07:40:10 -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 c8csp1209615lbb; Tue, 6 Jan 2015 07:40:09 -0800 (PST) X-Received: by 10.66.65.234 with SMTP id a10mr110443929pat.120.1420558808889; Tue, 06 Jan 2015 07:40:08 -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.08; Tue, 06 Jan 2015 07:40:08 -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 S1755399AbbAFPkH (ORCPT + 12 others); Tue, 6 Jan 2015 10:40:07 -0500 Received: from mail-pd0-f182.google.com ([209.85.192.182]:62185 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754388AbbAFPkG (ORCPT ); Tue, 6 Jan 2015 10:40:06 -0500 Received: by mail-pd0-f182.google.com with SMTP id p10so30680704pdj.27 for ; Tue, 06 Jan 2015 07:40:05 -0800 (PST) X-Received: by 10.66.224.201 with SMTP id re9mr161094935pac.138.1420558805869; Tue, 06 Jan 2015 07:40:05 -0800 (PST) Received: from localhost ([122.167.212.196]) by mx.google.com with ESMTPSA id vl1sm57250274pbc.62.2015.01.06.07.40.04 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 06 Jan 2015 07:40:05 -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 10/16] cpufreq: stats: drop 'cpu' field of struct cpufreq_stats Date: Tue, 6 Jan 2015 21:09:09 +0530 Message-Id: <5ed14ea85604f072ba8545ab82720a85b5747f31.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.217.182 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: , 'cpu' field of struct cpufreq_stats isn't used anymore and so can be dropped. This change makes cpufreq_stats_update_policy_cpu() empty and so that is removed as well. Reviewed-by: Prarit Bhargava Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_stats.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index ca3d5b71e828..1ed703a3e21e 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c @@ -18,7 +18,6 @@ static spinlock_t cpufreq_stats_lock; struct cpufreq_stats { - unsigned int cpu; unsigned int total_trans; unsigned long long last_time; unsigned int max_state; @@ -187,7 +186,6 @@ static int __cpufreq_stats_create_table(struct cpufreq_policy *policy) if (ret) goto error_out; - stats->cpu = cpu; policy->stats = stats; cpufreq_for_each_valid_entry(pos, table) @@ -244,22 +242,12 @@ static void cpufreq_stats_create_table(unsigned int cpu) cpufreq_cpu_put(policy); } -static void cpufreq_stats_update_policy_cpu(struct cpufreq_policy *policy) -{ - policy->stats->cpu = policy->cpu; -} - static int cpufreq_stat_notifier_policy(struct notifier_block *nb, unsigned long val, void *data) { int ret = 0; struct cpufreq_policy *policy = data; - if (val == CPUFREQ_UPDATE_POLICY_CPU) { - cpufreq_stats_update_policy_cpu(policy); - return 0; - } - if (val == CPUFREQ_CREATE_POLICY) ret = __cpufreq_stats_create_table(policy); else if (val == CPUFREQ_REMOVE_POLICY)