iommu/irq_remapping: Normailize the way to detect whether IR is enabled
authorJiang Liu <jiang.liu@linux.intel.com>
Wed, 7 Jan 2015 07:31:43 +0000 (15:31 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Jan 2015 10:24:24 +0000 (11:24 +0100)
commite901176046e6729e002839d7296f27f17599ccb8
tree5e2991a2bb5dbd4df05d19a423fe7d7a75e2e4b0
parent7fa1c842caca3b1d8a55a64033403cab8ca8583a
iommu/irq_remapping: Normailize the way to detect whether IR is enabled

Refine code by normailizing the way to detect whether IR is enabled.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Tested-by: Joerg Roedel <joro@8bytes.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: iommu@lists.linux-foundation.org
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/1420615903-28253-17-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/iommu/irq_remapping.c