diff options
-rw-r--r-- | arch/powerpc/include/asm/processor.h | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/powerpc/mm/hugetlbpage.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index 8ab8a1a9610a..009fab130cd8 100644 --- a/arch/powerpc/include/asm/processor.h +++ b/arch/powerpc/include/asm/processor.h | |||
@@ -246,7 +246,7 @@ struct thread_struct { | |||
246 | #endif /* CONFIG_ALTIVEC */ | 246 | #endif /* CONFIG_ALTIVEC */ |
247 | #ifdef CONFIG_VSX | 247 | #ifdef CONFIG_VSX |
248 | /* VSR status */ | 248 | /* VSR status */ |
249 | int used_vsr; /* set if process has used altivec */ | 249 | int used_vsr; /* set if process has used VSX */ |
250 | #endif /* CONFIG_VSX */ | 250 | #endif /* CONFIG_VSX */ |
251 | #ifdef CONFIG_SPE | 251 | #ifdef CONFIG_SPE |
252 | unsigned long evr[32]; /* upper 32-bits of SPE regs */ | 252 | unsigned long evr[32]; /* upper 32-bits of SPE regs */ |
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 612df305886b..b8500b4ac7fe 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -983,7 +983,7 @@ void restore_tm_state(struct pt_regs *regs) | |||
983 | static inline void save_sprs(struct thread_struct *t) | 983 | static inline void save_sprs(struct thread_struct *t) |
984 | { | 984 | { |
985 | #ifdef CONFIG_ALTIVEC | 985 | #ifdef CONFIG_ALTIVEC |
986 | if (cpu_has_feature(cpu_has_feature(CPU_FTR_ALTIVEC))) | 986 | if (cpu_has_feature(CPU_FTR_ALTIVEC)) |
987 | t->vrsave = mfspr(SPRN_VRSAVE); | 987 | t->vrsave = mfspr(SPRN_VRSAVE); |
988 | #endif | 988 | #endif |
989 | #ifdef CONFIG_PPC_BOOK3S_64 | 989 | #ifdef CONFIG_PPC_BOOK3S_64 |
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 6dd272b6196f..d991b9e80dbb 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c | |||
@@ -413,13 +413,13 @@ static void hugepd_free(struct mmu_gather *tlb, void *hugepte) | |||
413 | { | 413 | { |
414 | struct hugepd_freelist **batchp; | 414 | struct hugepd_freelist **batchp; |
415 | 415 | ||
416 | batchp = this_cpu_ptr(&hugepd_freelist_cur); | 416 | batchp = &get_cpu_var(hugepd_freelist_cur); |
417 | 417 | ||
418 | if (atomic_read(&tlb->mm->mm_users) < 2 || | 418 | if (atomic_read(&tlb->mm->mm_users) < 2 || |
419 | cpumask_equal(mm_cpumask(tlb->mm), | 419 | cpumask_equal(mm_cpumask(tlb->mm), |
420 | cpumask_of(smp_processor_id()))) { | 420 | cpumask_of(smp_processor_id()))) { |
421 | kmem_cache_free(hugepte_cache, hugepte); | 421 | kmem_cache_free(hugepte_cache, hugepte); |
422 | put_cpu_var(hugepd_freelist_cur); | 422 | put_cpu_var(hugepd_freelist_cur); |
423 | return; | 423 | return; |
424 | } | 424 | } |
425 | 425 | ||