lkml.org 
[lkml]   [2022]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH printk v2 22/38] serial: kgdboc: document console_lock usage
    Hi,

    On Wed, Oct 19, 2022 at 7:56 AM John Ogness <john.ogness@linutronix.de> wrote:
    >
    > kgdboc_earlycon_init() uses the console_lock to ensure that no consoles
    > are unregistered until the kgdboc_earlycon is setup. This is necessary
    > because the trapping of the exit() callback assumes that the exit()
    > callback is not called before the trap is setup.
    >
    > Explicitly document this non-typical console_lock usage.
    >
    > Signed-off-by: John Ogness <john.ogness@linutronix.de>
    > ---
    > drivers/tty/serial/kgdboc.c | 8 ++++++++
    > 1 file changed, 8 insertions(+)

    Reviewed-by: Douglas Anderson <dianders@chromium.org>

    \
     
     \ /
      Last update: 2022-10-25 03:20    [W:4.306 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site