iommu: Export intel_iommu_enabled to signal when iommu is in use
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Wed, 23 Nov 2011 18:42:14 +0000 (16:42 -0200)
committerHiroshi DOYU <hdoyu@nvidia.com>
Mon, 23 Jan 2012 09:11:42 +0000 (11:11 +0200)
commit27a53c2ecf401d7ed540abe081d15dc76aeaad4e
treed0a2210f57eba82d94eb16656e11daac74875d4c
parent4bd432a08e242b1ae65cdb6b3d3b336e7d29ff63
iommu: Export intel_iommu_enabled to signal when iommu is in use

In i915 driver, we do not enable either rc6 or semaphores on SNB when dmar
is enabled. The new 'intel_iommu_enabled' variable signals when the
iommu code is in operation.

Cc: Ted Phelps <phelps@gnusto.com>
Cc: Peter <pab1612@gmail.com>
Cc: Lukas Hejtmanek <xhejtman@fi.muni.cz>
Cc: Andrew Lutomirski <luto@mit.edu>
CC: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/iommu/intel-iommu.c
include/linux/dma_remapping.h