diff options
| author | Prasad Sodagudi <psodagud@codeaurora.org> | 2015-11-23 19:20:32 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:11:59 -0700 |
| commit | ef45790690d22a863616d5fdb73a670e93d8f13d (patch) | |
| tree | 53d7316761670df2040cb8e59d7ceffc1c5e63dd /kernel/printk/printk.c | |
| parent | aae5800a7a6e585bbc0bb8db54845dbca3fe1c07 (diff) | |
printk: Add all cpu notifiers under CONSOLE_FLUSH_ON_HOTPLUG flag
Add all cpu notifiers in CONSOLE_FLUSH_ON_HOTPLUG config
flag to avoid hotplug latencies and by default config
CONSOLE_FLUSH_ON_HOTPLUG flag is disabled.
Change-Id: I389f207d8faf84cfd4267d52213e40a47a43774d
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Diffstat (limited to 'kernel/printk/printk.c')
| -rw-r--r-- | kernel/printk/printk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index b04725f44d98..7b884dc55bd0 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2138,8 +2138,12 @@ static int console_cpu_notify(struct notifier_block *self, case CPU_DEAD: case CPU_DOWN_FAILED: case CPU_UP_CANCELED: + case CPU_DYING: +#ifdef CONFIG_CONSOLE_FLUSH_ON_HOTPLUG console_lock(); console_unlock(); +#endif + break; } return NOTIFY_OK; } |
