From patchwork Thu Jan 5 06:04:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 9498435 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AA6DC606B5 for ; Thu, 5 Jan 2017 06:07:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9922E27FA8 for ; Thu, 5 Jan 2017 06:07:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DEC127FB6; Thu, 5 Jan 2017 06:07:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15AAF27F94 for ; Thu, 5 Jan 2017 06:07:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032426AbdAEGFm (ORCPT ); Thu, 5 Jan 2017 01:05:42 -0500 Received: from mail-pg0-f51.google.com ([74.125.83.51]:34563 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032414AbdAEGE5 (ORCPT ); Thu, 5 Jan 2017 01:04:57 -0500 Received: by mail-pg0-f51.google.com with SMTP id y62so184195923pgy.1 for ; Wed, 04 Jan 2017 22:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=JD2rHJrIFLmRpHVNnn/Z8U+SjKwNkAJEv8+wpmRTBVw=; b=HT2IVNAS7Kq9Pm8sR4szq5uqEHB+rdVvJ/oxvTSSCbYE0e1xRZKwq4yATQAX1nhAS0 kV32/BsHFxDjtzXidhsZ1pOyC/vsjT7h254A80MBJY8nVcIW/rTrGiYfU4gbJ7mfuMUn aQCeHTvQb8ZdtNMuGm/bAEcXhZTYJL4wK98HA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=JD2rHJrIFLmRpHVNnn/Z8U+SjKwNkAJEv8+wpmRTBVw=; b=Q5B86PwKyx9ieyftlqJnNs9x7VEWtbWKGGidwnDrOJYAhL78+207EvJQbAHiD7DUMW CQHTsFQt0yGN4gwBg/sTk2MkzJufQOM+PSn8abPwBzF/Y+w4rjQfURDb1ziqp8xM7gqP Z75O+I4yIIm2QEHda2T7/VzyTKofFA9xA/Jk7bdlB/mpr3J9Nw/GDNtuck06JLLJYrIY PxoEa13zldsxNhDb8r8JHodrjm0tp3N2TFiyGPt+Yd7KE5jDpluG2dD9wIfQe1KPY0IR e4yK1RrBZfDGlbaVGhYafYNAk4KOKtpR5wYza8nCbg5dS6YVkFhTjye8Gi9+aVgYnF58 f0UA== X-Gm-Message-State: AIkVDXKAT8ns/zL+KuW9tUMtpd0ZN3GOlsb6tqP/Wei1dwxbQzka36EVjeKdLkhgaeBWG791 X-Received: by 10.99.226.3 with SMTP id q3mr131852778pgh.37.1483596296950; Wed, 04 Jan 2017 22:04:56 -0800 (PST) Received: from localhost ([122.171.77.55]) by smtp.gmail.com with ESMTPSA id g82sm150646302pfb.43.2017.01.04.22.04.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jan 2017 22:04:56 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot Subject: [PATCH 2/2] cpufreq: Remove CPUFREQ_START notifier event Date: Thu, 5 Jan 2017 11:34:31 +0530 Message-Id: <2188a4e88d725062c400bcb50cc41477346e36c1.1483596168.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Its not used anymore, remove it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 3 --- drivers/cpufreq/ppc_cbe_cpufreq_pmi.c | 3 --- include/linux/cpufreq.h | 1 - 3 files changed, 7 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 53268bebdf1e..408479540566 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1246,9 +1246,6 @@ static int cpufreq_online(unsigned int cpu) write_unlock_irqrestore(&cpufreq_driver_lock, flags); } - blocking_notifier_call_chain(&cpufreq_policy_notifier_list, - CPUFREQ_START, policy); - ret = cpufreq_init_policy(policy); if (ret) { pr_err("%s: Failed to initialize policy for cpu: %d (%d)\n", diff --git a/drivers/cpufreq/ppc_cbe_cpufreq_pmi.c b/drivers/cpufreq/ppc_cbe_cpufreq_pmi.c index dc112481a408..eeaa92251512 100644 --- a/drivers/cpufreq/ppc_cbe_cpufreq_pmi.c +++ b/drivers/cpufreq/ppc_cbe_cpufreq_pmi.c @@ -100,9 +100,6 @@ static int pmi_notifier(struct notifier_block *nb, /* Should this really be called for CPUFREQ_ADJUST and CPUFREQ_NOTIFY * policy events?) */ - if (event == CPUFREQ_START) - return 0; - node = cbe_cpu_to_node(policy->cpu); pr_debug("got notified, event=%lu, node=%u\n", event, node); diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 0183986b3ba6..61009c0b82c8 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -415,7 +415,6 @@ static inline void cpufreq_resume(void) {} /* Policy Notifiers */ #define CPUFREQ_ADJUST (0) #define CPUFREQ_NOTIFY (1) -#define CPUFREQ_START (2) #ifdef CONFIG_CPU_FREQ int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list);