AMD IOMMU: calculate IVHD size with a function
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 17 Sep 2008 15:14:27 +0000 (17:14 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Sep 2008 10:59:30 +0000 (12:59 +0200)
commitb514e55569855bbaab782a8ec073630ed4e99c68
treeaf3a8371d5e1ad2cdb9f72dbc1b78000c6872f11
parent199d0d501202f077fe647a5c14fe046b17abc46b
AMD IOMMU: calculate IVHD size with a function

The current calculation of the IVHD entry size is hard to read. So move
this code to a seperate function to make it more clear what this
calculation does.

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