From patchwork Fri Jan 2 05:46:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 42666 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 A7B3D26CB5 for ; Fri, 2 Jan 2015 05:47:37 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf10330027wgh.9 for ; Thu, 01 Jan 2015 21:47:36 -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=aVWUEyQ80AFrJXHtFrq3e1b3ZOk0kJPKLpBTGe7hPug=; b=W7vdno31RndnNYQg4OKf/9yHn3tRabpXjD4BVrHWT+uwpIXBU2C7Dx3FTC2/nPTF6T ++8gZayMLUcnmizsyznz/F29pOvm6Brzlkg4QZvXxe90oaMPse1z10Tl0+uYYJ/UZHze xFgO9yifGoL4ibOFvc9vz0fYIZfhupO42UNVNrV9GxcMDduhSguLYLhpBfytIhS1eM18 YqhBw77nx7xqFjnkMP9UNWZfqTndY6u8j4fE2HfqfjmgVtCBgIUbEaZzL9V7+paUfIU9 NDhxFXNV8Xx9HWwZWFfBIGtaR8+xGOnbFTaqXSEdooLfNvaua34rLR+lllq8ny68wRPK mqnA== X-Gm-Message-State: ALoCoQmfqJlSnlv8EfKfE9GXysMtzdpKkSjh8T97H4unY/EO7E1SVwz64mbSxupj5LVJNWx3PmC2 X-Received: by 10.112.141.98 with SMTP id rn2mr5784256lbb.2.1420177656913; Thu, 01 Jan 2015 21:47:36 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.11.6 with SMTP id ee6ls2406670lad.7.gmail; Thu, 01 Jan 2015 21:47:36 -0800 (PST) X-Received: by 10.112.43.66 with SMTP id u2mr75269033lbl.35.1420177656507; Thu, 01 Jan 2015 21:47:36 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id la5si50292659lac.64.2015.01.01.21.47.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Jan 2015 21:47:36 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gm9so15027673lab.26 for ; Thu, 01 Jan 2015 21:47:36 -0800 (PST) X-Received: by 10.152.27.8 with SMTP id p8mr75342698lag.69.1420177656382; Thu, 01 Jan 2015 21:47:36 -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 c8csp114489lbb; Thu, 1 Jan 2015 21:47:35 -0800 (PST) X-Received: by 10.70.50.102 with SMTP id b6mr120772550pdo.38.1420177654502; Thu, 01 Jan 2015 21:47:34 -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.33; Thu, 01 Jan 2015 21:47:34 -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 S1750735AbbABFrd (ORCPT + 12 others); Fri, 2 Jan 2015 00:47:33 -0500 Received: from mail-pd0-f170.google.com ([209.85.192.170]:52070 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbbABFrc (ORCPT ); Fri, 2 Jan 2015 00:47:32 -0500 Received: by mail-pd0-f170.google.com with SMTP id v10so23294676pde.29 for ; Thu, 01 Jan 2015 21:47:32 -0800 (PST) X-Received: by 10.70.123.166 with SMTP id mb6mr53356422pdb.95.1420177652197; Thu, 01 Jan 2015 21:47:32 -0800 (PST) Received: from localhost ([122.167.116.151]) by mx.google.com with ESMTPSA id bu4sm45337895pdb.80.2015.01.01.21.47.31 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Jan 2015 21:47:31 -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 08/14] cpufreq: remove CPUFREQ_UPDATE_POLICY_CPU notifications Date: Fri, 2 Jan 2015 11:16:45 +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.53 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 fixes the value of other notification macros, hopefully all users are using macro's instead of direct values and nothing will break :) 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 2d99f12e4199..43013eac26fd 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);