From patchwork Tue Jan 6 15:39:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 42780 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8A87E2055F for ; Tue, 6 Jan 2015 15:40:15 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id c13sf1947741eek.2 for ; Tue, 06 Jan 2015 07:40:14 -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=9N0TKX1XvSAXbvIR69REJu61plbdOVMBBSSqR0876ys=; b=QGUrTBiHggJSKWFKk9DbfYz9jjh7c9YBQtTGsJi2vHZ3H5rvldLmfoKaKHtz1K7EWa ZnDe5JKSC48hQC1O+g223fC6QSmsA01XBTaSzwVuBRYnAAGCTJCNMMbdBETPLHhJuUCn +HUUSUcuVSyCdhjWbV6vt2k2qrHchxjmnqOQP+Y0wclvWxUjTPQiriyLbvzyYWGlwk7h LvgACQZuWhM+QImu3A+WFGJ4k73RHdxL6RcPYnJrTrY9rUu750gGFa7tQ/hy5bVWoCIY JAmDyzzf5ywvXndGsgaSNH3yQPVRoZFtS/hy8d7sDFncL0DB0uqdLO4VYZgazU1+SVzq yjew== X-Gm-Message-State: ALoCoQkZHtsLs9/RueJBODRULPyDjJ8y84t5HgkTAALByU7BAQabiCLDN4tTVWjNPRWHV2ZAHvw4 X-Received: by 10.112.42.104 with SMTP id n8mr6294lbl.19.1420558814756; Tue, 06 Jan 2015 07:40:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.100 with SMTP id p4ls60427laj.24.gmail; Tue, 06 Jan 2015 07:40:14 -0800 (PST) X-Received: by 10.112.147.10 with SMTP id tg10mr101164046lbb.92.1420558814610; Tue, 06 Jan 2015 07:40:14 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id lb3si66386617lab.20.2015.01.06.07.40.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Jan 2015 07:40:14 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id pn19so19922514lab.23 for ; Tue, 06 Jan 2015 07:40:14 -0800 (PST) X-Received: by 10.152.87.12 with SMTP id t12mr100951707laz.31.1420558814514; Tue, 06 Jan 2015 07:40:14 -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 c8csp1209631lbb; Tue, 6 Jan 2015 07:40:13 -0800 (PST) X-Received: by 10.66.157.40 with SMTP id wj8mr160108164pab.105.1420558812663; Tue, 06 Jan 2015 07:40:12 -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.11; Tue, 06 Jan 2015 07:40:12 -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 S1755456AbbAFPkL (ORCPT + 12 others); Tue, 6 Jan 2015 10:40:11 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:35243 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754388AbbAFPkK (ORCPT ); Tue, 6 Jan 2015 10:40:10 -0500 Received: by mail-pd0-f174.google.com with SMTP id fp1so30432997pdb.5 for ; Tue, 06 Jan 2015 07:40:09 -0800 (PST) X-Received: by 10.70.31.35 with SMTP id x3mr156366015pdh.34.1420558809804; Tue, 06 Jan 2015 07:40:09 -0800 (PST) Received: from localhost ([122.167.212.196]) by mx.google.com with ESMTPSA id f4sm57291029pdk.87.2015.01.06.07.40.08 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 06 Jan 2015 07:40:09 -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 11/16] cpufreq: remove CPUFREQ_UPDATE_POLICY_CPU notifications Date: Tue, 6 Jan 2015 21:09:10 +0530 Message-Id: <0eabc86c71bd22bea10ea2565329b4e550cf1aff.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.50 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_UPDATE_POLICY_CPU notifications were used only from cpufreq-stats which doesn't use it anymore. Remove them. This also decrements values of other notification macros defined after CPUFREQ_UPDATE_POLICY_CPU by 1 to remove gaps. Hopefully all users are using macro's instead of direct numbers and so they wouldn't break as macro values are changed now. Reviewed-by: Prarit Bhargava Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 3 --- include/linux/cpufreq.h | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index b88894578fd1..6d97dffeaaf7 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1094,9 +1094,6 @@ static int update_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu, policy->cpu = cpu; up_write(&policy->rwsem); - blocking_notifier_call_chain(&cpufreq_policy_notifier_list, - CPUFREQ_UPDATE_POLICY_CPU, policy); - return 0; } diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 7e1a389b4e92..2ee4888c1f47 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -368,9 +368,8 @@ static inline void cpufreq_resume(void) {} #define CPUFREQ_INCOMPATIBLE (1) #define CPUFREQ_NOTIFY (2) #define CPUFREQ_START (3) -#define CPUFREQ_UPDATE_POLICY_CPU (4) -#define CPUFREQ_CREATE_POLICY (5) -#define CPUFREQ_REMOVE_POLICY (6) +#define CPUFREQ_CREATE_POLICY (4) +#define CPUFREQ_REMOVE_POLICY (5) #ifdef CONFIG_CPU_FREQ int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list);