From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756183AbbESODE (ORCPT ); Tue, 19 May 2015 10:03:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57564 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755925AbbESODC (ORCPT ); Tue, 19 May 2015 10:03:02 -0400 Date: Tue, 19 May 2015 16:02:13 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Vitaly Kuznetsov Cc: devel@linuxdriverproject.org, "K. Y. Srinivasan" , Haiyang Zhang , linux-kernel@vger.kernel.org, Dexuan Cui , Ingo Molnar , "Paul E. McKenney" , "Rafael J. Wysocki" , Peter Zijlstra , Thomas Gleixner Subject: Re: [PATCH 1/2] cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable Message-ID: <20150519140213.GB10445@potion.brq.redhat.com> References: <1432037742-25923-1-git-send-email-vkuznets@redhat.com> <1432037742-25923-2-git-send-email-vkuznets@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1432037742-25923-2-git-send-email-vkuznets@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2015-05-19 14:15+0200, Vitaly Kuznetsov: > Loaded Hyper-V module will use these functions to disable CPU hotplug > under certain circumstances. > > Signed-off-by: Vitaly Kuznetsov > --- > kernel/cpu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/kernel/cpu.c b/kernel/cpu.c > index 94bbe46..dc005e7 100644 > --- a/kernel/cpu.c > +++ b/kernel/cpu.c > @@ -193,6 +193,7 @@ void cpu_hotplug_disable(void) > cpu_hotplug_disabled = 1; (I think it would be safer to make this into a counter, at least, so cpu_hotplug_disable() | | cpu_hotplug_disable() cpu_hotplug_enable() | wouldn't end up with enabled hotplug, when this switch is intended for hotplug-and-die situations.) > cpu_maps_update_done(); > } > +EXPORT_SYMBOL_GPL(cpu_hotplug_disable); > > void cpu_hotplug_enable(void) > { > @@ -200,7 +201,7 @@ void cpu_hotplug_enable(void) > cpu_hotplug_disabled = 0; > cpu_maps_update_done(); > } > - > +EXPORT_SYMBOL_GPL(cpu_hotplug_enable); > #endif /* CONFIG_HOTPLUG_CPU */ > > /* Need to know about CPUs going up/down? */ > -- > 1.9.3 >