mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
printk: Make the console flush configurable in hotplug path
The thread which initiates the hot plug can get scheduled out, while trying to acquire the console lock, thus increasing the hot plug latency. This option allows to selectively disable the console flush and in turn reduce the hot plug latency. Change-Id: I42507804d321b29b7761146a6c175d959bf79925 Signed-off-by: Mohammed Khajapasha <[email protected]> Signed-off-by: Elliot Berman <[email protected]>
This commit is contained in:
parent
a3b9d216d6
commit
29432c4eba
2 changed files with 18 additions and 2 deletions
10
init/Kconfig
10
init/Kconfig
|
|
@ -608,6 +608,16 @@ config LOG_BUF_SHIFT
|
|||
13 => 8 KB
|
||||
12 => 4 KB
|
||||
|
||||
config CONSOLE_FLUSH_ON_HOTPLUG
|
||||
bool "Enable console flush configurable in hot plug code path"
|
||||
depends on HOTPLUG_CPU
|
||||
def_bool n
|
||||
help
|
||||
In cpu hot plug path console lock acquire and release causes the
|
||||
console to flush. If console lock is not free hot plug latency
|
||||
increases. So make console flush configurable in hot plug path
|
||||
and default disabled to help in cpu hot plug latencies.
|
||||
|
||||
config LOG_CPU_MAX_BUF_SHIFT
|
||||
int "CPU kernel log buffer size contribution (13 => 8 KB, 17 => 128KB)"
|
||||
depends on SMP
|
||||
|
|
|
|||
Loading…
Reference in a new issue