]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/cell/spu_base.c
[POWERPC] cell: add spu_64k_pages_available() check
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / cell / spu_base.c
index 8398af6b5c0b851ee1572dc18353d974ad415e59..95001cdfaa260dfa48377aa9ec3062811834b8fe 100644 (file)
@@ -126,6 +126,12 @@ void spu_associate_mm(struct spu *spu, struct mm_struct *mm)
 }
 EXPORT_SYMBOL_GPL(spu_associate_mm);
 
+int spu_64k_pages_available(void)
+{
+       return mmu_psize_defs[MMU_PAGE_64K].shift != 0;
+}
+EXPORT_SYMBOL_GPL(spu_64k_pages_available);
+
 static int __spu_trap_invalid_dma(struct spu *spu)
 {
        pr_debug("%s\n", __FUNCTION__);