Re: [PATCH 2/2] x86/earlyprintk: setup earlyprintk as early as possible

From: Alexander Kuleshov
Date: Thu Apr 09 2015 - 03:39:19 EST

Hello Peter,

2015-04-08 17:32 GMT+06:00 Peter Hurley <peter@xxxxxxxxxxxxxxxxxx>:
>> +
>> +void setup_early_serial_console() {
> If you put this function in kernel/early_printk.c, then
> setup_early_printk() can remain file scope.

Yes, right. will fix it.

> The WARN is still required here because the register_console() caller
> is not always obvious.
> A better way to achieve what you want is to not re-register the console
> to begin with. Looking at early_console_register() and setup_early_printk(),
> it seems like re-registration would already be prevented (since early_console
> != 0 after the first call to early_console_register())? Have you tried this?

hmm, now, thanks for the point will test it.

Thank you.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at