diff options
-rw-r--r-- | kernel/printk/printk.c | 4 | ||||
-rw-r--r-- | kernel/smp.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index e04c455a0e38..960fbfc6cd0a 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c | |||
@@ -2628,7 +2628,7 @@ void wake_up_klogd(void) | |||
2628 | preempt_disable(); | 2628 | preempt_disable(); |
2629 | if (waitqueue_active(&log_wait)) { | 2629 | if (waitqueue_active(&log_wait)) { |
2630 | this_cpu_or(printk_pending, PRINTK_PENDING_WAKEUP); | 2630 | this_cpu_or(printk_pending, PRINTK_PENDING_WAKEUP); |
2631 | irq_work_queue(&__get_cpu_var(wake_up_klogd_work)); | 2631 | irq_work_queue(this_cpu_ptr(&wake_up_klogd_work)); |
2632 | } | 2632 | } |
2633 | preempt_enable(); | 2633 | preempt_enable(); |
2634 | } | 2634 | } |
@@ -2644,7 +2644,7 @@ int printk_deferred(const char *fmt, ...) | |||
2644 | va_end(args); | 2644 | va_end(args); |
2645 | 2645 | ||
2646 | __this_cpu_or(printk_pending, PRINTK_PENDING_OUTPUT); | 2646 | __this_cpu_or(printk_pending, PRINTK_PENDING_OUTPUT); |
2647 | irq_work_queue(&__get_cpu_var(wake_up_klogd_work)); | 2647 | irq_work_queue(this_cpu_ptr(&wake_up_klogd_work)); |
2648 | preempt_enable(); | 2648 | preempt_enable(); |
2649 | 2649 | ||
2650 | return r; | 2650 | return r; |
diff --git a/kernel/smp.c b/kernel/smp.c index aff8aa14f547..af24183fe6bb 100644 --- a/kernel/smp.c +++ b/kernel/smp.c | |||
@@ -164,7 +164,7 @@ static int generic_exec_single(int cpu, struct call_single_data *csd, | |||
164 | if (!csd) { | 164 | if (!csd) { |
165 | csd = &csd_stack; | 165 | csd = &csd_stack; |
166 | if (!wait) | 166 | if (!wait) |
167 | csd = &__get_cpu_var(csd_data); | 167 | csd = this_cpu_ptr(&csd_data); |
168 | } | 168 | } |
169 | 169 | ||
170 | csd_lock(csd); | 170 | csd_lock(csd); |
@@ -229,7 +229,7 @@ static void flush_smp_call_function_queue(bool warn_cpu_offline) | |||
229 | 229 | ||
230 | WARN_ON(!irqs_disabled()); | 230 | WARN_ON(!irqs_disabled()); |
231 | 231 | ||
232 | head = &__get_cpu_var(call_single_queue); | 232 | head = this_cpu_ptr(&call_single_queue); |
233 | entry = llist_del_all(head); | 233 | entry = llist_del_all(head); |
234 | entry = llist_reverse_order(entry); | 234 | entry = llist_reverse_order(entry); |
235 | 235 | ||
@@ -419,7 +419,7 @@ void smp_call_function_many(const struct cpumask *mask, | |||
419 | return; | 419 | return; |
420 | } | 420 | } |
421 | 421 | ||
422 | cfd = &__get_cpu_var(cfd_data); | 422 | cfd = this_cpu_ptr(&cfd_data); |
423 | 423 | ||
424 | cpumask_and(cfd->cpumask, mask, cpu_online_mask); | 424 | cpumask_and(cfd->cpumask, mask, cpu_online_mask); |
425 | cpumask_clear_cpu(this_cpu, cfd->cpumask); | 425 | cpumask_clear_cpu(this_cpu, cfd->cpumask); |