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>2014-04-10 00:19:48 (GMT)
commite2cf20e0e398dde23f3f9624cf04d03dceeeefeb (patch)
treea01b70ca3e4c9bd6b4b9ca47e9ca9fc807274b36 /lib
parent0daa7bd247a2dc811a6ff3d211d4150f97a96200 (diff)
downloadlinux-fsl-qoriq-e2cf20e0e398dde23f3f9624cf04d03dceeeefeb.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);