From: Joerg Roedel Date: Fri, 25 Jul 2008 12:57:58 +0000 (+0200) Subject: iommu: add iommu_num_pages helper function X-Git-Tag: v2.6.27-rc1~3^2~8^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bc9f79ee1ddc913be0a6d3592036683ef8a3148;p=pandora-kernel.git iommu: add iommu_num_pages helper function Calculating the number of pages from given address and length numbers is a task required in multiple IOMMU implementations. So implement this as a generic function into the IOMMU helper code. Signed-off-by: Joerg Roedel Cc: iommu@lists.linux-foundation.org Cc: bhavna.sarathy@amd.com Cc: robert.richter@amd.com Cc: FUJITA Tomonori Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed