]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] only verify the allocation bitmap if CONFIG_IOMMU_DEBUG is on
authorMuli Ben-Yehuda <muli@il.ibm.com>
Tue, 26 Sep 2006 08:52:33 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:33 +0000 (10:52 +0200)
commit796e4390e0378e1e57c033349610cfc741696a3d
tree7669081e84ad3d3f39f8e15963dd2105b2ffa022
parentde684652f34f57cb60d4d78d09139a0e0c5e7b1b
[PATCH] only verify the allocation bitmap if CONFIG_IOMMU_DEBUG is on

Introduce new function verify_bit_range(). Define two versions, one
for CONFIG_IOMMU_DEBUG enabled and one for disabled. Previously we
were checking that the bitmap was consistent every time we allocated
or freed an entry in the TCE table, which is good for debugging but
incurs an unnecessary penalty on non debug builds.

Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/pci-calgary.c