x86, AMD IOMMU: add an emergency exit to the completion wait loop
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 11 Jul 2008 15:14:27 +0000 (17:14 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 11 Jul 2008 16:01:13 +0000 (18:01 +0200)
commit136f78a19cf94d469f31a4009c7c0ac2301fbbf0
tree92055e77da5bb4874be1ff3936a16ead059d6701
parent9a836de0c9944c42d006ec241712c72e74737c73
x86, AMD IOMMU: add an emergency exit to the completion wait loop

To make the loop waiting for the completion wait command not wait forever this
patch adds a limit of cycles that loop.

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