powerpc: Replace per_cpu(, smp_processor_id()) with __get_cpu_var()
The cputime code has a few places that do per_cpu(, smp_processor_id()). Replace them with __get_cpu_var(). Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
4ba525d134
commit
61c03ddbdf
@ -73,10 +73,9 @@ static inline unsigned long cputime_to_jiffies(const cputime_t ct)
|
||||
static inline cputime_t cputime_to_scaled(const cputime_t ct)
|
||||
{
|
||||
if (cpu_has_feature(CPU_FTR_SPURR) &&
|
||||
per_cpu(cputime_last_delta, smp_processor_id()))
|
||||
return ct *
|
||||
per_cpu(cputime_scaled_last_delta, smp_processor_id())/
|
||||
per_cpu(cputime_last_delta, smp_processor_id());
|
||||
__get_cpu_var(cputime_last_delta))
|
||||
return ct * __get_cpu_var(cputime_scaled_last_delta) /
|
||||
__get_cpu_var(cputime_last_delta);
|
||||
return ct;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user