mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ARM: Fix "Make low-level printk work" to use a separate config option
Signed-off-by: Arve Hjønnevåg <arve@android.com> Git-commit: 47e0f4d1dcbf4d84c8f7982e5f5ebaa5ba67ecc5 Git-Repo: https://android.googlesource.com/kernel/common.git Signed-off-by: Ian Maund <imaund@codeaurora.org>
This commit is contained in:
parent
6194f9c4b3
commit
7e9bbd95fb
2 changed files with 16 additions and 0 deletions
|
@ -667,6 +667,14 @@ config EARLY_PRINTK
|
|||
kernel low-level debugging functions. Add earlyprintk to your
|
||||
kernel parameters to enable this console.
|
||||
|
||||
config EARLY_PRINTK_DIRECT
|
||||
bool "Early printk direct"
|
||||
depends on DEBUG_LL
|
||||
help
|
||||
Say Y here if you want to have an early console using the
|
||||
kernel low-level debugging functions and EARLY_PRINTK is
|
||||
not early enough.
|
||||
|
||||
config OC_ETM
|
||||
bool "On-chip ETM and ETB"
|
||||
depends on ARM_AMBA
|
||||
|
|
|
@ -51,6 +51,10 @@
|
|||
#define CREATE_TRACE_POINTS
|
||||
#include <trace/events/printk.h>
|
||||
|
||||
#ifdef CONFIG_EARLY_PRINTK_DIRECT
|
||||
extern void printascii(char *);
|
||||
#endif
|
||||
|
||||
/* printk's without a loglevel use this.. */
|
||||
#define DEFAULT_MESSAGE_LOGLEVEL CONFIG_DEFAULT_MESSAGE_LOGLEVEL
|
||||
|
||||
|
@ -1848,6 +1852,10 @@ asmlinkage int vprintk_emit(int facility, int level,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_EARLY_PRINTK_DIRECT
|
||||
printascii(text);
|
||||
#endif
|
||||
|
||||
if (level == -1)
|
||||
level = default_message_loglevel;
|
||||
|
||||
|
|
Loading…
Reference in a new issue