Merge tag 'iwlwifi-next-for-kalle-2014-12-30' of https://git.kernel.org/pub/scm/linux...
[cascardo/linux.git] / arch / powerpc / mm / hugetlbpage-book3e.c
index 5e4ee25..ba47aaf 100644 (file)
@@ -33,13 +33,13 @@ static inline int tlb1_next(void)
 
        ncams = mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY;
 
-       index = __get_cpu_var(next_tlbcam_idx);
+       index = this_cpu_read(next_tlbcam_idx);
 
        /* Just round-robin the entries and wrap when we hit the end */
        if (unlikely(index == ncams - 1))
-               __get_cpu_var(next_tlbcam_idx) = tlbcam_index;
+               __this_cpu_write(next_tlbcam_idx, tlbcam_index);
        else
-               __get_cpu_var(next_tlbcam_idx)++;
+               __this_cpu_inc(next_tlbcam_idx);
 
        return index;
 }