Re: [PATCH 0/2 v3] cpu hotplug: Preserve topology directory after soft remove event
From: Greg Kroah-Hartman
Date: Tue Sep 27 2016 - 09:50:17 EST
On Tue, Sep 27, 2016 at 07:45:56AM -0400, Prarit Bhargava wrote:
> On 09/26/2016 07:57 AM, Borislav Petkov wrote:
> > $ echo 0 > /sys/devices/system/cpu/cpu2/online
>
> This results in the topology directory being destroyed. It shouldn't be -- the
> socket and core are still there. If you could open up your computer you could
> touch them. This is similar to downing a PCI device, or removing !kernel memory
> DIMM from a system. The device is still physically there.
If you remove a PCI device from the system, by turning it off from the
PCI hotplug interface, it will go away from sysfs, just like this CPU
device is going away, no matter if you physically remove the device or
not.
Thanks for validating that everything is working the same and correctly
:)
greg k-h