AMD IOMMU: simplify dma_mask_to_pages
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 17 Sep 2008 10:17:00 +0000 (12:17 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Sep 2008 10:59:26 +0000 (12:59 +0200)
commit6754086ce67c0a1f5d7eac612102368781e14588
tree94ae6594ae234a0c05bc0496017c8e9084f46167
parentc97ac5359e6897abe22770740294dda185bac30d
AMD IOMMU: simplify dma_mask_to_pages

The current calculation is very complicated. This patch replaces it with
a much simpler version.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu.c