commit | 9500995f8e94b132c82640ad8b58db8d10299c79 | [log] [tgz] |
---|---|---|
author | Thomas Gleixner <tglx@linutronix.de> | Sun Jul 17 21:41:35 2011 +0200 |
committer | Anders Roxell <anders.roxell@linaro.org> | Sun Jul 26 11:08:34 2015 +0200 |
tree | 7145ae6ddcea876d6856a46bb44f44ae88011ea4 | |
parent | 2f59686681a34b4c4191e406a54b34845cec0b07 [diff] [blame] |
debugobjects: Make RT aware Avoid filling the pool / allocating memory with irqs off(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 547f7f9..8fcdbc2 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c
@@ -309,7 +309,10 @@ 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);