]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - include/linux/idr.h
Apply preempt_rt patch-4.9-rt1.patch.xz
[zynq/linux.git] / include / linux / idr.h
index 3639a28188c9218ff35fb5f36aee54778b40350e..5da2c4424f84b6e3e1a328ab7e5e4e25a534bdfd 100644 (file)
@@ -95,10 +95,14 @@ bool idr_is_empty(struct idr *idp);
  * Each idr_preload() should be matched with an invocation of this
  * function.  See idr_preload() for details.
  */
+#ifdef CONFIG_PREEMPT_RT_FULL
+void idr_preload_end(void);
+#else
 static inline void idr_preload_end(void)
 {
        preempt_enable();
 }
+#endif
 
 /**
  * idr_find - return pointer for given id