From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933362AbcI0L5d (ORCPT ); Tue, 27 Sep 2016 07:57:33 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40078 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932876AbcI0L5Y (ORCPT ); Tue, 27 Sep 2016 07:57:24 -0400 Date: Tue, 27 Sep 2016 13:57:00 +0200 From: Peter Zijlstra To: Prarit Bhargava Cc: Borislav Petkov , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Greg Kroah-Hartman , Len Brown , Andi Kleen , Jiri Olsa , Juergen Gross Subject: Re: [PATCH 0/2 v3] cpu hotplug: Preserve topology directory after soft remove event Message-ID: <20160927115700.GN5016@twins.programming.kicks-ass.net> References: <1474457973-19536-1-git-send-email-prarit@redhat.com> <20160921130428.2e7bprll64vs6h2r@pd.tnic> <57E28BFF.8060107@redhat.com> <20160921140135.i5emid4qno2o6cre@pd.tnic> <57E3C78C.5040400@redhat.com> <20160922121039.l6lnhb53os2af27x@pd.tnic> <57E90A61.60402@redhat.com> <20160926115940.GB5016@twins.programming.kicks-ass.net> <57EA5C6C.8090507@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57EA5C6C.8090507@redhat.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 27, 2016 at 07:47:56AM -0400, Prarit Bhargava wrote: > There's a difference between soft remove (via sysfs) and a true hot remove > operation (where the whole thing is physically removed). Soft remove only > results in the processor being made "not available" to the scheduler. How is it different? We do _ONE_ CPU unplug operation. We do not touch the thing anymore after that. It _can_ be taken out after that. Therefore hotplug wipes the topology information and clears the CPU from relevant bitmasks. >>From the kernel's POV there really is no distinction.