Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
debugobjects: Make RT aware
Browse files Browse the repository at this point in the history
Avoid filling the pool / allocating memory with irqs off().

Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
KAGA-KOKO authored and pkushwah3 committed Jul 6, 2017
1 parent 96b7322 commit c2c25b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/debugobjects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c2c25b0

Please sign in to comment.