Revert "kgdboc: disable the console lock when in kgdb"
This reverts commit81eaadcae8
. Commit81eaadcae8
("kgdboc: disable the console lock when in kgdb") is no longer needed now that we have the patch ("kgdb: Disable WARN_CONSOLE_UNLOCKED for all kgdb"). Revert it. Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Link: https://lore.kernel.org/r/20200507130644.v4.2.I02258eee1497e55bcbe8dc477de90369c7c7c2c5@changeid Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
This commit is contained in:

کامیت شده توسط
Daniel Thompson

والد
202164fbfa
کامیت
333564add0
@@ -275,14 +275,10 @@ static void kgdboc_pre_exp_handler(void)
|
||||
/* Increment the module count when the debugger is active */
|
||||
if (!kgdb_connected)
|
||||
try_module_get(THIS_MODULE);
|
||||
|
||||
atomic_inc(&ignore_console_lock_warning);
|
||||
}
|
||||
|
||||
static void kgdboc_post_exp_handler(void)
|
||||
{
|
||||
atomic_dec(&ignore_console_lock_warning);
|
||||
|
||||
/* decrement the module count when the debugger detaches */
|
||||
if (!kgdb_connected)
|
||||
module_put(THIS_MODULE);
|
||||
|
مرجع در شماره جدید
Block a user