Skip to content

Commit 52bef0c

Browse files
committed
Merge tag 'powerpc-4.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc fixes from Michael Ellerman: - Fixup preempt underflow with huge pages from Sebastian Siewior - Fix altivec SPR not being saved from Oliver O'Halloran - Correct used_vsr comment from Simon Guo * tag 'powerpc-4.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc: Correct used_vsr comment powerpc/process: Fix altivec SPR not being saved powerpc/mm: Fixup preempt underflow with huge pages
2 parents dc8a64e + 71528d8 commit 52bef0c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

arch/powerpc/include/asm/processor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ struct thread_struct {
246246
#endif /* CONFIG_ALTIVEC */
247247
#ifdef CONFIG_VSX
248248
/* VSR status */
249-
int used_vsr; /* set if process has used altivec */
249+
int used_vsr; /* set if process has used VSX */
250250
#endif /* CONFIG_VSX */
251251
#ifdef CONFIG_SPE
252252
unsigned long evr[32]; /* upper 32-bits of SPE regs */

arch/powerpc/kernel/process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ void restore_tm_state(struct pt_regs *regs)
983983
static inline void save_sprs(struct thread_struct *t)
984984
{
985985
#ifdef CONFIG_ALTIVEC
986-
if (cpu_has_feature(cpu_has_feature(CPU_FTR_ALTIVEC)))
986+
if (cpu_has_feature(CPU_FTR_ALTIVEC))
987987
t->vrsave = mfspr(SPRN_VRSAVE);
988988
#endif
989989
#ifdef CONFIG_PPC_BOOK3S_64

arch/powerpc/mm/hugetlbpage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,13 +413,13 @@ static void hugepd_free(struct mmu_gather *tlb, void *hugepte)
413413
{
414414
struct hugepd_freelist **batchp;
415415

416-
batchp = this_cpu_ptr(&hugepd_freelist_cur);
416+
batchp = &get_cpu_var(hugepd_freelist_cur);
417417

418418
if (atomic_read(&tlb->mm->mm_users) < 2 ||
419419
cpumask_equal(mm_cpumask(tlb->mm),
420420
cpumask_of(smp_processor_id()))) {
421421
kmem_cache_free(hugepte_cache, hugepte);
422-
put_cpu_var(hugepd_freelist_cur);
422+
put_cpu_var(hugepd_freelist_cur);
423423
return;
424424
}
425425

0 commit comments

Comments
 (0)