Commit eb085eea authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: use smp_processor_id everywhere

From: anton@samba.org

use smp_processor_id everywhere
parent 700c2edb
......@@ -161,7 +161,7 @@ int dedicated_idle(void)
struct paca_struct *lpaca = get_paca(), *ppaca;
unsigned long start_snooze;
ppaca = &paca[(lpaca->xPacaIndex) ^ 1];
ppaca = &paca[smp_processor_id() ^ 1];
while (1) {
/* Indicate to the HV that we are idle. Now would be
......
......@@ -267,7 +267,7 @@ int timer_interrupt(struct pt_regs * regs)
int next_dec;
unsigned long cur_tb;
struct paca_struct *lpaca = get_paca();
unsigned long cpu = lpaca->xPacaIndex;
unsigned long cpu = smp_processor_id();
irq_enter();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment