Re: [PATCH 0/2 v3] cpu hotplug: Preserve topology directory after soft remove event

From: Peter Zijlstra
Date: Tue Sep 27 2016 - 07:57:44 EST


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.