diff options
author | Christoph Lameter <cl@linux.com> | 2014-10-27 11:49:45 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-10-29 11:18:18 -0400 |
commit | 56e4dea81a55c338eede625f715c7fa21f1a28c4 (patch) | |
tree | 9d2ef7f447aa3a811fc77e84c506341e5469b087 | |
parent | 9f295664e2f2cdf53c596f74bcf3f644cae9fecc (diff) |
percpu: Convert remaining __get_cpu_var uses in 3.18-rcX
During the 3.18 merge period additional __get_cpu_var uses were
added. The patch converts these to this_cpu_ptr().
Signed-off-by: Christoph Lameter <cl@linux.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | arch/arm64/kernel/psci.c | 4 | ||||
-rw-r--r-- | kernel/irq_work.c | 4 | ||||
-rw-r--r-- | kernel/time/tick-sched.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c index 866c1c821860..d56394b6dc99 100644 --- a/arch/arm64/kernel/psci.c +++ b/arch/arm64/kernel/psci.c | |||
@@ -511,7 +511,7 @@ static int cpu_psci_cpu_kill(unsigned int cpu) | |||
511 | 511 | ||
512 | static int psci_suspend_finisher(unsigned long index) | 512 | static int psci_suspend_finisher(unsigned long index) |
513 | { | 513 | { |
514 | struct psci_power_state *state = __get_cpu_var(psci_power_state); | 514 | struct psci_power_state *state = __this_cpu_read(psci_power_state); |
515 | 515 | ||
516 | return psci_ops.cpu_suspend(state[index - 1], | 516 | return psci_ops.cpu_suspend(state[index - 1], |
517 | virt_to_phys(cpu_resume)); | 517 | virt_to_phys(cpu_resume)); |
@@ -520,7 +520,7 @@ static int psci_suspend_finisher(unsigned long index) | |||
520 | static int __maybe_unused cpu_psci_cpu_suspend(unsigned long index) | 520 | static int __maybe_unused cpu_psci_cpu_suspend(unsigned long index) |
521 | { | 521 | { |
522 | int ret; | 522 | int ret; |
523 | struct psci_power_state *state = __get_cpu_var(psci_power_state); | 523 | struct psci_power_state *state = __this_cpu_read(psci_power_state); |
524 | /* | 524 | /* |
525 | * idle state index 0 corresponds to wfi, should never be called | 525 | * idle state index 0 corresponds to wfi, should never be called |
526 | * from the cpu_suspend operations | 526 | * from the cpu_suspend operations |
diff --git a/kernel/irq_work.c b/kernel/irq_work.c index 3ab9048483fa..cbf9fb899d92 100644 --- a/kernel/irq_work.c +++ b/kernel/irq_work.c | |||
@@ -175,11 +175,11 @@ EXPORT_SYMBOL_GPL(irq_work_run); | |||
175 | 175 | ||
176 | void irq_work_tick(void) | 176 | void irq_work_tick(void) |
177 | { | 177 | { |
178 | struct llist_head *raised = &__get_cpu_var(raised_list); | 178 | struct llist_head *raised = this_cpu_ptr(&raised_list); |
179 | 179 | ||
180 | if (!llist_empty(raised) && !arch_irq_work_has_interrupt()) | 180 | if (!llist_empty(raised) && !arch_irq_work_has_interrupt()) |
181 | irq_work_run_list(raised); | 181 | irq_work_run_list(raised); |
182 | irq_work_run_list(&__get_cpu_var(lazy_list)); | 182 | irq_work_run_list(this_cpu_ptr(&lazy_list)); |
183 | } | 183 | } |
184 | 184 | ||
185 | /* | 185 | /* |
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 7b5741fc4110..b1c6a512cdd0 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -235,7 +235,7 @@ void tick_nohz_full_kick(void) | |||
235 | if (!tick_nohz_full_cpu(smp_processor_id())) | 235 | if (!tick_nohz_full_cpu(smp_processor_id())) |
236 | return; | 236 | return; |
237 | 237 | ||
238 | irq_work_queue(&__get_cpu_var(nohz_full_kick_work)); | 238 | irq_work_queue(this_cpu_ptr(&nohz_full_kick_work)); |
239 | } | 239 | } |
240 | 240 | ||
241 | /* | 241 | /* |