From patchwork Thu Dec 18 12:00:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 42435 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 CCA2826C8B for ; Thu, 18 Dec 2014 12:01:35 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf769778eek.1 for ; Thu, 18 Dec 2014 04:01:35 -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=KLvaZAJavb8PD1Mqt43GsKNuwDSvK9bqw2A5rwdYxok=; b=C/Ux/GujCxeANHZYahI4zVQ63wc6lx5qRUNOWtiPufBR94NNwwBXDDF1pmr2oFJIzk 1qpBJw1f8t0GrhXyfh7UJdpAEFXQohIStBvEiv88yEkqiAEAPUjLHUxHX7rc/pBe20m7 b3xF4Zgg0kkzM0fynX5lsnTs1Zc00bGHYgL2qvXMODNJocsyL+cLX3tMtbTmhewb1Va4 9B5sIqnCnSqgNrwzRsDPcIxjhgsSdsSdpTWnIPMi7EmLrWALFUQF3yZNxC7Z2Q9a7CkP NUU/YQKb/jivw6CGFi6uWY+V3d4R9b2NLVHKa2pDXQdQR61oYyM1GQB071EzvkDP04aM pyhw== X-Gm-Message-State: ALoCoQkXd5PVJ1b1Ez2V16+MgTmgRyWe/mzCS9Ad5qS3jZOlSjY633lTW5Iyu7YGX+xW2rNk3I/a X-Received: by 10.112.188.199 with SMTP id gc7mr278114lbc.6.1418904095070; Thu, 18 Dec 2014 04:01:35 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.97 with SMTP id r1ls1282178lar.0.gmail; Thu, 18 Dec 2014 04:01:34 -0800 (PST) X-Received: by 10.112.164.240 with SMTP id yt16mr1911785lbb.34.1418904094522; Thu, 18 Dec 2014 04:01:34 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id xb8si6613178lbb.109.2014.12.18.04.01.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 04:01:34 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id hs14so856188lab.36 for ; Thu, 18 Dec 2014 04:01:34 -0800 (PST) X-Received: by 10.152.234.35 with SMTP id ub3mr1886675lac.70.1418904094430; Thu, 18 Dec 2014 04:01:34 -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 ru5csp1680493lbb; Thu, 18 Dec 2014 04:01:33 -0800 (PST) X-Received: by 10.70.133.98 with SMTP id pb2mr2553853pdb.137.1418904092649; Thu, 18 Dec 2014 04:01:32 -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.31; Thu, 18 Dec 2014 04:01:32 -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 S1752250AbaLRMBb (ORCPT + 12 others); Thu, 18 Dec 2014 07:01:31 -0500 Received: from mail-pd0-f178.google.com ([209.85.192.178]:61492 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752058AbaLRMBa (ORCPT ); Thu, 18 Dec 2014 07:01:30 -0500 Received: by mail-pd0-f178.google.com with SMTP id r10so1309002pdi.9 for ; Thu, 18 Dec 2014 04:01:30 -0800 (PST) X-Received: by 10.68.189.233 with SMTP id gl9mr2888781pbc.20.1418904089649; Thu, 18 Dec 2014 04:01:29 -0800 (PST) Received: from localhost ([122.166.148.73]) by mx.google.com with ESMTPSA id wf5sm6674951pab.40.2014.12.18.04.01.28 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 18 Dec 2014 04:01:28 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar Subject: [PATCH 07/13] cpufreq: stats: remove cpufreq_stats_update_policy_cpu() Date: Thu, 18 Dec 2014 17:30:24 +0530 Message-Id: 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.49 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: , cpufreq_stats_update_policy_cpu() doesn't do any useful stuff anymore and must be removed. Along with it, also remove 'cpu' field from 'struct cpufreq_stats' as that isn't used as well. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_stats.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 106c89ccef30..f458fdbc5bfd 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; @@ -194,7 +193,6 @@ static int __cpufreq_stats_create_table(struct cpufreq_policy *policy) if (ret) goto error_out; - stat->cpu = cpu; policy->stats_data = stat; cpufreq_for_each_valid_entry(pos, table) @@ -251,24 +249,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) -{ - struct cpufreq_stats *stat = policy->stats_data; - - stat->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)