Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / arch / ppc / mm / mmu_decl.h
index 4699d6f..540f329 100644 (file)
@@ -43,6 +43,8 @@ extern int mem_init_done;
 extern PTE *Hash, *Hash_end;
 extern unsigned long Hash_size, Hash_mask;
 
+extern unsigned int num_tlbcam_entries;
+
 /* ...and now those things that may be slightly different between processor
  * architectures.  -- Dan
  */
@@ -75,7 +77,7 @@ static inline void flush_HPTE(unsigned context, unsigned long va,
                              unsigned long pdval)
 {
        if ((Hash != 0) &&
-           (cur_cpu_spec[0]->cpu_features & CPU_FTR_HPTE_TABLE))
+           cpu_has_feature(CPU_FTR_HPTE_TABLE))
                flush_hash_pages(0, va, pdval, 1);
        else
                _tlbie(va);