-
由 Hans de Goede 提交于
Taking over the console involves allocating mem with GFP_KERNEL, talking to drm drivers, etc. So this should not be done from an atomic context. But the console-output trigger deferred console takeover may happen from an atomic context, which leads to "BUG: sleeping function called from invalid context" errors. This commit fixes these errors by doing the deferred takeover from a workqueue. Signed-off-by: NHans de Goede <hdegoede@redhat.com> [b.zolnierkie: remove unused variable] Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
df37e225