From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422886AbcBQM1N (ORCPT ); Wed, 17 Feb 2016 07:27:13 -0500 Received: from terminus.zytor.com ([198.137.202.10]:56699 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422706AbcBQM1G (ORCPT ); Wed, 17 Feb 2016 07:27:06 -0500 Date: Wed, 17 Feb 2016 04:24:10 -0800 From: tip-bot for Thomas Gleixner Message-ID: Cc: jolsa@redhat.com, linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, tglx@linutronix.de, vincent.weaver@maine.edu, eranian@google.com, hpa@zytor.com, torvalds@linux-foundation.org, acme@redhat.com Reply-To: linux-kernel@vger.kernel.org, jolsa@redhat.com, peterz@infradead.org, mingo@kernel.org, eranian@google.com, vincent.weaver@maine.edu, tglx@linutronix.de, torvalds@linux-foundation.org, acme@redhat.com, hpa@zytor.com In-Reply-To: <20160209201007.682184765@linutronix.de> References: <20160209201007.682184765@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf/core: Remove bogus UP_CANCELED hotplug state Git-Commit-ID: b4f75d44bed1bdbb14ac704bfc38f62a3675e591 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: b4f75d44bed1bdbb14ac704bfc38f62a3675e591 Gitweb: http://git.kernel.org/tip/b4f75d44bed1bdbb14ac704bfc38f62a3675e591 Author: Thomas Gleixner AuthorDate: Tue, 9 Feb 2016 20:11:20 +0000 Committer: Ingo Molnar CommitDate: Wed, 17 Feb 2016 10:37:28 +0100 perf/core: Remove bogus UP_CANCELED hotplug state If CPU_UP_PREPARE fails the perf hotplug code calls perf_event_exit_cpu(), which is a pointless exercise. The cpu is not online, so the smp function calls return -ENXIO. So the result is a list walk to call noops. Remove it. Signed-off-by: Thomas Gleixner Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Vince Weaver Link: http://lkml.kernel.org/r/20160209201007.682184765@linutronix.de Signed-off-by: Ingo Molnar --- kernel/events/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index 5946460..474ffea 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9286,7 +9286,6 @@ perf_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu) perf_event_init_cpu(cpu); break; - case CPU_UP_CANCELED: case CPU_DOWN_PREPARE: perf_event_exit_cpu(cpu); break;