]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - include/asm-generic/bug.h
Apply preempt_rt patch-4.9-rt1.patch.xz
[zynq/linux.git] / include / asm-generic / bug.h
index 6f96247226a4d2b9c1e9aa56be423ffa0c4d49df..fa53a21263c2acb95d4e0a03bb9b5ca3bff39fb2 100644 (file)
@@ -215,6 +215,20 @@ void __warn(const char *file, int line, void *caller, unsigned taint,
 # define WARN_ON_SMP(x)                        ({0;})
 #endif
 
+#ifdef CONFIG_PREEMPT_RT_BASE
+# define BUG_ON_RT(c)                  BUG_ON(c)
+# define BUG_ON_NONRT(c)               do { } while (0)
+# define WARN_ON_RT(condition)         WARN_ON(condition)
+# define WARN_ON_NONRT(condition)      do { } while (0)
+# define WARN_ON_ONCE_NONRT(condition) do { } while (0)
+#else
+# define BUG_ON_RT(c)                  do { } while (0)
+# define BUG_ON_NONRT(c)               BUG_ON(c)
+# define WARN_ON_RT(condition)         do { } while (0)
+# define WARN_ON_NONRT(condition)      WARN_ON(condition)
+# define WARN_ON_ONCE_NONRT(condition) WARN_ON_ONCE(condition)
+#endif
+
 #endif /* __ASSEMBLY__ */
 
 #endif