aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debugobjects.c')
-rw-r--r--lib/debugobjects.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index 14afeeb7d6ef..55437fd5128b 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -1131,11 +1131,10 @@ static int __init debug_objects_replace_static_objects(void)
1131 } 1131 }
1132 1132
1133 /* 1133 /*
1134 * When debug_objects_mem_init() is called we know that only 1134 * debug_objects_mem_init() is now called early that only one CPU is up
1135 * one CPU is up, so disabling interrupts is enough 1135 * and interrupts have been disabled, so it is safe to replace the
1136 * protection. This avoids the lockdep hell of lock ordering. 1136 * active object references.
1137 */ 1137 */
1138 local_irq_disable();
1139 1138
1140 /* Remove the statically allocated objects from the pool */ 1139 /* Remove the statically allocated objects from the pool */
1141 hlist_for_each_entry_safe(obj, tmp, &obj_pool, node) 1140 hlist_for_each_entry_safe(obj, tmp, &obj_pool, node)
@@ -1156,7 +1155,6 @@ static int __init debug_objects_replace_static_objects(void)
1156 cnt++; 1155 cnt++;
1157 } 1156 }
1158 } 1157 }
1159 local_irq_enable();
1160 1158
1161 pr_debug("%d of %d active objects replaced\n", 1159 pr_debug("%d of %d active objects replaced\n",
1162 cnt, obj_pool_used); 1160 cnt, obj_pool_used);