diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index cc82fd675f91..888c65726ebd 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -327,7 +327,7 @@ void calculate_steal_time(void) | |||
327 | 327 | ||
328 | if (!cpu_has_feature(CPU_FTR_PURR)) | 328 | if (!cpu_has_feature(CPU_FTR_PURR)) |
329 | return; | 329 | return; |
330 | pme = &per_cpu(cpu_purr_data, smp_processor_id()); | 330 | pme = &__get_cpu_var(cpu_purr_data); |
331 | if (!pme->initialized) | 331 | if (!pme->initialized) |
332 | return; /* this can happen in early boot */ | 332 | return; /* this can happen in early boot */ |
333 | tb = mftb(); | 333 | tb = mftb(); |
@@ -352,7 +352,7 @@ static void snapshot_purr(void) | |||
352 | if (!cpu_has_feature(CPU_FTR_PURR)) | 352 | if (!cpu_has_feature(CPU_FTR_PURR)) |
353 | return; | 353 | return; |
354 | local_irq_save(flags); | 354 | local_irq_save(flags); |
355 | pme = &per_cpu(cpu_purr_data, smp_processor_id()); | 355 | pme = &__get_cpu_var(cpu_purr_data); |
356 | pme->tb = mftb(); | 356 | pme->tb = mftb(); |
357 | pme->purr = mfspr(SPRN_PURR); | 357 | pme->purr = mfspr(SPRN_PURR); |
358 | pme->initialized = 1; | 358 | pme->initialized = 1; |