]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - lib/debugobjects.c
Apply preempt_rt patch-4.9-rt1.patch.xz
[zynq/linux.git] / lib / debugobjects.c
index 056052dc8e911f31f20bd5aff4824c94dd9f5e83..d8494e126de893c0b191f588b3fefb6a93d06412 100644 (file)
@@ -308,7 +308,10 @@ __debug_object_init(void *addr, struct debug_obj_descr *descr, int onstack)
        struct debug_obj *obj;
        unsigned long flags;
 
-       fill_pool();
+#ifdef CONFIG_PREEMPT_RT_FULL
+       if (preempt_count() == 0 && !irqs_disabled())
+#endif
+               fill_pool();
 
        db = get_bucket((unsigned long) addr);