From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939125AbdEXQ0K (ORCPT ); Wed, 24 May 2017 12:26:10 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:57628 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932991AbdEXQ0F (ORCPT ); Wed, 24 May 2017 12:26:05 -0400 Date: Wed, 24 May 2017 09:26:00 -0700 From: "Paul E. McKenney" To: Thomas Gleixner Cc: LKML , Peter Zijlstra , Ingo Molnar , Steven Rostedt , Sebastian Siewior Subject: Re: [patch V3 02/32] cpu/hotplug: Provide lockdep_assert_cpus_held() Reply-To: paulmck@linux.vnet.ibm.com References: <20170524081511.203800767@linutronix.de> <20170524081547.161282442@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170524081547.161282442@linutronix.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 17052416-0048-0000-0000-0000018D89CC X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007111; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000212; SDB=6.00865029; UDB=6.00429479; IPR=6.00644809; BA=6.00005372; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015566; XFM=3.00000015; UTC=2017-05-24 16:26:02 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17052416-0049-0000-0000-000041403259 Message-Id: <20170524162600.GF3956@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-24_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705240079 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 24, 2017 at 10:15:13AM +0200, Thomas Gleixner wrote: > 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 Acked-by: Paul E. McKenney > --- > include/linux/cpu.h | 2 ++ > 1 file changed, 2 insertions(+) > > --- 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 */ > >