From patchwork Thu Dec 18 12:00:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 42436 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0A6C926C8B for ; Thu, 18 Dec 2014 12:01:40 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id q1sf652128lam.6 for ; Thu, 18 Dec 2014 04:01:38 -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=BeWM/UNlQs0vbpBbIKzGYavVW9zZhCWQ+sC/N2lMZ8Y=; b=igFGQxU5NC0W9LR2AIvf0+99AMRsyJC7EUSHw+RDFvcKm/bFnoskAembhSEjr/1QzW pMIfTESyHSAJ52Szn+f7XIoVQJpdpz0fGB65s5tj7vKHVQbRz4NA7My4PtTEXHHhX1Lz rKtimQWDte9IyzA9igjpzwafFsRBnRdKb2hsQNMIjSC+fehOSRiOr2Be9YJIeRLWeLDW 20tRFu0GqOrConaxPW45/IMps8+wz239rh46K/Wlbq8KYFGn84l+LRESucD52hKfJzZV 5FiLIJafCm+2ztiVtUkQwFyvrX0w7Y2GkNvFbdf04zLluyUZZMsxnfefzBstNIGEymb3 OvxA== X-Gm-Message-State: ALoCoQnzZHohKkRP5uxRd2It0/dnt8qAGrJbqU7P/YqAkM6Ko/UK5nuCVW0gmObbLUiOW8bNouM5 X-Received: by 10.152.8.67 with SMTP id p3mr280046laa.4.1418904098945; Thu, 18 Dec 2014 04:01:38 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.1 with SMTP id s1ls1261765lal.23.gmail; Thu, 18 Dec 2014 04:01:38 -0800 (PST) X-Received: by 10.152.234.35 with SMTP id ub3mr1887043lac.70.1418904098585; Thu, 18 Dec 2014 04:01:38 -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 is2si6712145lac.12.2014.12.18.04.01.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 04:01:38 -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 f15so925209lbj.13 for ; Thu, 18 Dec 2014 04:01:38 -0800 (PST) X-Received: by 10.152.5.226 with SMTP id v2mr1906211lav.34.1418904098487; Thu, 18 Dec 2014 04:01:38 -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 ru5csp1680515lbb; Thu, 18 Dec 2014 04:01:37 -0800 (PST) X-Received: by 10.68.194.227 with SMTP id hz3mr2855437pbc.52.1418904096468; Thu, 18 Dec 2014 04:01:36 -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.35; Thu, 18 Dec 2014 04:01:36 -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 S1752464AbaLRMBf (ORCPT + 12 others); Thu, 18 Dec 2014 07:01:35 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:38351 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752450AbaLRMBe (ORCPT ); Thu, 18 Dec 2014 07:01:34 -0500 Received: by mail-pa0-f45.google.com with SMTP id lf10so1281833pab.32 for ; Thu, 18 Dec 2014 04:01:34 -0800 (PST) X-Received: by 10.68.125.163 with SMTP id mr3mr2590299pbb.99.1418904093382; Thu, 18 Dec 2014 04:01:33 -0800 (PST) Received: from localhost ([122.166.148.73]) by mx.google.com with ESMTPSA id w5sm6697315pdj.13.2014.12.18.04.01.32 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 18 Dec 2014 04:01:32 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar Subject: [PATCH 08/13] cpufreq: remove CPUFREQ_UPDATE_POLICY_CPU notifications Date: Thu, 18 Dec 2014 17:30:25 +0530 Message-Id: <349dfaedd56ecf36976707ee057229ee338f4123.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.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: , 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 :) 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);