[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-rt-users
Subject:    [PATCH] AMD IOMMU WARN NONRT
From:       DIXLOR <dixlor () gmail ! com>
Date:       2016-02-27 11:39:43
Message-ID: 56D18AFF.40308 () gmail ! com
[Download RAW message or body]

diff -ur a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
--- a/drivers/iommu/amd_iommu.c    2016-02-17 23:31:25.000000000 +0300
+++ b/drivers/iommu/amd_iommu.c    2016-02-27 14:36:34.928583707 +0300
@@ -1952,10 +1952,10 @@
      int ret;

      /*
-     * Must be called with IRQs disabled. Warn here to detect early
-     * when its not.
+     * Must be called with IRQs disabled on a non RT kernel. Warn here t=
o
+     * detect early when its not.
       */
-    WARN_ON(!irqs_disabled());
+    WARN_ON_NONRT(!irqs_disabled());

      /* lock domain */
      spin_lock(&domain->lock);
@@ -2118,10 +2118,10 @@
      struct protection_domain *domain;

      /*
-     * Must be called with IRQs disabled. Warn here to detect early
-     * when its not.
+     * Must be called with IRQs disabled on a non RT kernel. Warn here t=
o
+     * detect early when its not.
       */
-    WARN_ON(!irqs_disabled());
+    WARN_ON_NONRT(!irqs_disabled());

      if (WARN_ON(!dev_data->domain))
          return;




["smime.p7s" (application/pkcs7-signature)]
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic