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

Commit f9c42831 authored by Michael Bohan's avatar Michael Bohan Committed by Se Wang (Patrick) Oh
Browse files

printk: Don't take console semaphore in atomic context



The CPU HOTPLUG take_cpu_down path is invokved with preemption
disabled via stop_machine. This causes a "Scheduling while
atomic" BUG when there is contention for the console semaphore.
The solution is to defer the console flush until it's not in
scheduling violation.

Change-Id: I2d0d58576a4db308ee40850a18a6bb9784ca4e4b
Signed-off-by: default avatarMichael Bohan <mbohan@codeaurora.org>
[mattw@codeaurora.org: adjust for moved location of printk.c]
Signed-off-by: default avatarMatt Wagantall <mattw@codeaurora.org>
parent d9479b68
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