summaryrefslogtreecommitdiffstats
path: root/kernel/printk/printk.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/printk/printk.c')
-rw-r--r--kernel/printk/printk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 4487ffcd42d5..37893da9bae8 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -2194,8 +2194,10 @@ void resume_console(void)
*/
static int console_cpu_notify(unsigned int cpu)
{
- console_lock();
- console_unlock();
+ if (!cpuhp_tasks_frozen) {
+ console_lock();
+ console_unlock();
+ }
return 0;
}