summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-07-17 19:41:35 (GMT)
committerScott Wood <scottwood@freescale.com>2015-02-13 22:20:56 (GMT)
commit1476cd88309b6ab7c345eb59d23e65822674bda1 (patch)
treeeb8eb49d97791ae7914834f88baf64a98133d6cb /lib
parent90c1dcb4c50cb1d9bc7985cffc264b0ab6787ed1 (diff)
downloadlinux-fsl-qoriq-1476cd88309b6ab7c345eb59d23e65822674bda1.tar.xz
debugobjects-rt.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/debugobjects.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index bf2c8b1..1ac2049 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -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);