From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933536AbcIUNEi (ORCPT ); Wed, 21 Sep 2016 09:04:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:58905 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933010AbcIUNEh (ORCPT ); Wed, 21 Sep 2016 09:04:37 -0400 Date: Wed, 21 Sep 2016 15:04:29 +0200 From: Borislav Petkov To: Prarit Bhargava Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Greg Kroah-Hartman , Peter Zijlstra , 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: <20160921130428.2e7bprll64vs6h2r@pd.tnic> References: <1474457973-19536-1-git-send-email-prarit@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1474457973-19536-1-git-send-email-prarit@redhat.com> User-Agent: NeoMutt/ (1.7.0) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 21, 2016 at 07:39:31AM -0400, Prarit Bhargava wrote: > The information in /sys/devices/system/cpu/cpuX/topology > directory is useful for userspace monitoring applications and in-tree > utilities like cpupower & turbostat. > > When down'ing a CPU the /sys/devices/system/cpu/cpuX/topology directory is > removed during the CPU_DEAD hotplug callback in the kernel. The problem > with this model is that the CPU has not been physically removed and the > data in the topology directory is still valid. IOW, the cpu is still > present but the kernel has removed the topology directory making it > very difficult to determine exactly where the cpu is located. So I'm afraid I still don't understand what the problem here is. And the commit message of 2/2 doesn't make it any clearer. Can you please give a concrete example what the problem is and what you're trying to achieve. Thanks. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --