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

Skip to content
Commit 42bd7dd7 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

cpuidle: Wrap cpu_online_mask usage with preempt_disable



Make sure preemption is disabled before we read the cpu_online_mask
to ensure that no CPUs are hotplugged out after. If we do not have
preemption disabled when we read the online mask, we run the risk of
sending an IPI to an offline CPU resulting in a BUG().

Change-Id: I349cfd0ff3d269f3d544b458eaad27b627470c09
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
parent 8fa5b27a
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