From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S943454AbdEZIfk (ORCPT ); Fri, 26 May 2017 04:35:40 -0400 Received: from terminus.zytor.com ([65.50.211.136]:60549 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763516AbdEZIfg (ORCPT ); Fri, 26 May 2017 04:35:36 -0400 Date: Fri, 26 May 2017 01:32:13 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: tglx@linutronix.de, paulmck@linux.vnet.ibm.com, peterz@infradead.org, mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, bigeasy@linutronix.de, rostedt@goodmis.org Reply-To: rostedt@goodmis.org, bigeasy@linutronix.de, linux-kernel@vger.kernel.org, peterz@infradead.org, hpa@zytor.com, mingo@kernel.org, paulmck@linux.vnet.ibm.com, tglx@linutronix.de In-Reply-To: <20170524081547.161282442@linutronix.de> References: <20170524081547.161282442@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:smp/hotplug] cpu/hotplug: Provide lockdep_assert_cpus_held() Git-Commit-ID: ade3f680a76b474d9f5375a9b1d100ee787bf469 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: ade3f680a76b474d9f5375a9b1d100ee787bf469 Gitweb: http://git.kernel.org/tip/ade3f680a76b474d9f5375a9b1d100ee787bf469 Author: Thomas Gleixner AuthorDate: Wed, 24 May 2017 10:15:13 +0200 Committer: Thomas Gleixner CommitDate: Fri, 26 May 2017 10:10:35 +0200 cpu/hotplug: Provide lockdep_assert_cpus_held() Provide a stub function which can be used in places where existing get_online_cpus() calls are moved to call sites. This stub is going to be filled by the final conversion of the hotplug locking mechanism to a percpu rwsem. Signed-off-by: Thomas Gleixner Tested-by: Paul E. McKenney Acked-by: Paul E. McKenney Acked-by: Ingo Molnar Cc: Peter Zijlstra Cc: Sebastian Siewior Cc: Steven Rostedt Link: http://lkml.kernel.org/r/20170524081547.161282442@linutronix.de --- include/linux/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 0558760..af4d660 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -103,6 +103,7 @@ extern void cpus_write_lock(void); extern void cpus_write_unlock(void); extern void cpus_read_lock(void); extern void cpus_read_unlock(void); +static inline void lockdep_assert_cpus_held(void) { } extern void cpu_hotplug_disable(void); extern void cpu_hotplug_enable(void); void clear_tasks_mm_cpumask(int cpu); @@ -114,6 +115,7 @@ static inline void cpus_write_lock(void) { } static inline void cpus_write_unlock(void) { } static inline void cpus_read_lock(void) { } static inline void cpus_read_unlock(void) { } +static inline void lockdep_assert_cpus_held(void) { } static inline void cpu_hotplug_disable(void) { } static inline void cpu_hotplug_enable(void) { } #endif /* !CONFIG_HOTPLUG_CPU */