Skip to contentSkip to conversation

sparc/iommu: fix typo s/265KB/256KB/

PATCH Applied Akinobu Mita 2 participants 2 messages Mar 29, 2013 – Mar 31, 2013 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc/iommu: fix typo s/265KB/256KB/

IOMMU_NPTES is 64K PTEs, so the size is 256KB (= 64K * sizeof(iopte_t))

---

This patch is extracted a comment typo fix from the patch I send:
"sparc/iommu: use BITS_TO_LONGS() to calculate bitmap size"

 arch/sparc/mm/iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/mm/iommu.c +1 -1
index 0f4f719..28f96f2 100644
@@ -34,7 +34,7 @@
 #define IOMMU_RNGE	IOMMU_RNGE_256MB
 #define IOMMU_START	0xF0000000
 #define IOMMU_WINSIZE	(256*1024*1024U)
-#define IOMMU_NPTES	(IOMMU_WINSIZE/PAGE_SIZE)	/* 64K PTEs, 265KB */
+#define IOMMU_NPTES	(IOMMU_WINSIZE/PAGE_SIZE)	/* 64K PTEs, 256KB */
 #define IOMMU_ORDER	6				/* 4096 * (1<<6) */
 
 /* srmmu.c */
Signature · 1 line
1.8.1.4