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)
committerKeith Packard <keithp@keithp.com>
Fri, 16 Dec 2011 16:49:57 +0000 (08:49 -0800)
commit8bc1f85c02a20a59956b00b3acea12c04dce9ae8
tree259cc3a7b192afbde9c4b2bf066f0e1a3e4b3999
parent522200858093a6f31af9830672109f6d9807dd1e
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