x86, AMD IOMMU: add pre-allocation of protection domains
commitc432f3df8ea740e2ecb27da88bd6b5a254714959
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 26 Jun 2008 19:28:04 +0000 (26 21:28 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 27 Jun 2008 08:12:20 +0000 (27 10:12 +0200)
treedf10967104c41c0e2c1a65e33a3ecdf51f58060d
parent5d8b53cf3f8762b2230fb3d5b4e2ff78c5e701d8
x86, AMD IOMMU: add pre-allocation of protection domains

This patch adds a function to pre-allocate protection domains. So we don't have
to allocate it on the first request for a device (which can happen in atomic
mode).

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Cc: iommu@lists.linux-foundation.org
Cc: bhavna.sarathy@amd.com
Cc: Sebastian.Biemueller@amd.com
Cc: robert.richter@amd.com
Cc: joro@8bytes.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu.c