Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 87ef7f94 authored by Mukesh Ojha's avatar Mukesh Ojha Committed by Gerrit - the friendly Code Review server
Browse files

cpuhotplug: fix cleanup issue in hotplug fail path



While we hotplug a CPU if any one of the callback (which is to be
called after notify_online) fails, while doing rollback notify_dead()
has not being called, as for step `notify:prepare` the flag
`skipone_err` set to true and due to which sysfs nodes don't
get released.

If we call notify_dead(), it will send CPU_DEAD notification to the
drivers and they could do their cleanup. So, there is no need to send
CPU_UP_CANCEL notification on hotplug failure. This eventually
reverts commit 5ec3ec14 ("kernel: cpu: send CPU_UP_CANCELLED
notifcation").

Change-Id: I4ba42becec25a9d92acccae28a9fc28b9d9dedc1
Signed-off-by: default avatarMukesh Ojha <mojha@codeaurora.org>
parent 192e3703
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment