diff options
Diffstat (limited to 'kernel/printk/printk.c')
-rw-r--r-- | kernel/printk/printk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index e3962d63e368..ced2b84b1cb7 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c | |||
@@ -2622,7 +2622,7 @@ void wake_up_klogd(void) | |||
2622 | preempt_disable(); | 2622 | preempt_disable(); |
2623 | if (waitqueue_active(&log_wait)) { | 2623 | if (waitqueue_active(&log_wait)) { |
2624 | this_cpu_or(printk_pending, PRINTK_PENDING_WAKEUP); | 2624 | this_cpu_or(printk_pending, PRINTK_PENDING_WAKEUP); |
2625 | irq_work_queue(&__get_cpu_var(wake_up_klogd_work)); | 2625 | irq_work_queue(this_cpu_ptr(&wake_up_klogd_work)); |
2626 | } | 2626 | } |
2627 | preempt_enable(); | 2627 | preempt_enable(); |
2628 | } | 2628 | } |
@@ -2638,7 +2638,7 @@ int printk_deferred(const char *fmt, ...) | |||
2638 | va_end(args); | 2638 | va_end(args); |
2639 | 2639 | ||
2640 | __this_cpu_or(printk_pending, PRINTK_PENDING_OUTPUT); | 2640 | __this_cpu_or(printk_pending, PRINTK_PENDING_OUTPUT); |
2641 | irq_work_queue(&__get_cpu_var(wake_up_klogd_work)); | 2641 | irq_work_queue(this_cpu_ptr(&wake_up_klogd_work)); |
2642 | preempt_enable(); | 2642 | preempt_enable(); |
2643 | 2643 | ||
2644 | return r; | 2644 | return r; |