On 19 February 2015 at 02:45, Saravana Kannan skannan@codeaurora.org wrote:
During logical hotplug, you only get the hotplug notifiers. During physical hotplug, you get the subsys_remove.
From Rafael's mail it looked like we also get hotplug notifiers..
So it will be hoplug notifier followed by subsys, and that would be a special case then..
So, we have all the information needed to distinguish. Remove the sysfs entries only in subsys-remove.
But hotplug notifiers would have already done most of the work we wanted. And this will be a special case then.
Also, a policy might be shared by multiple CPUs and we need to take that into account as well here..
So, not that straight forward as I can see it..
Also, are you aware of any way to emulate that ?