ia64/xen-unstable
annotate xen/include/xen/delay.h @ 19800:78962f85c562
IOMMU: Add two generic functions to vendor neutral interface
Add 2 generic functions into the vendor neutral iommu interface, The
reason is that from changeset 19732, there is only one global flag
"iommu_enabled" that controls iommu enablement for both vtd and amd
systems, so we need different code paths for vtd and amd iommu systems
if this flag has been turned on. Also, the early checking of
"iommu_enabled" in iommu_setup() is removed to prevent iommu
functionalities from been disabled on amd systems.
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Add 2 generic functions into the vendor neutral iommu interface, The
reason is that from changeset 19732, there is only one global flag
"iommu_enabled" that controls iommu enablement for both vtd and amd
systems, so we need different code paths for vtd and amd iommu systems
if this flag has been turned on. Also, the early checking of
"iommu_enabled" in iommu_setup() is removed to prevent iommu
functionalities from been disabled on amd systems.
Signed-off-by: Wei Wang <wei.wang2@amd.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Fri Jun 19 08:41:50 2009 +0100 (2009-06-19) |
parents | 9f85adafc1e1 |
children |
rev | line source |
---|---|
kaf24@1210 | 1 #ifndef _LINUX_DELAY_H |
kaf24@1210 | 2 #define _LINUX_DELAY_H |
kaf24@1210 | 3 |
kaf24@1210 | 4 /* Copyright (C) 1993 Linus Torvalds */ |
kaf24@1210 | 5 |
kaf24@1210 | 6 #include <asm/delay.h> |
kaf24@1210 | 7 #define mdelay(n) (\ |
kaf24@1210 | 8 {unsigned long msec=(n); while (msec--) udelay(1000);}) |
kaf24@1210 | 9 |
kaf24@1210 | 10 #endif /* defined(_LINUX_DELAY_H) */ |