Skip to content

Commit 3f397bf

Browse files
committed
debugobjects: Remove pointless hlist initialization
It's BSS zero initialized. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Zhen Lei <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 55fb412 commit 3f397bf

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/debugobjects.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,20 +1364,11 @@ static bool __init debug_objects_replace_static_objects(struct kmem_cache *cache
13641364
void __init debug_objects_mem_init(void)
13651365
{
13661366
struct kmem_cache *cache;
1367-
int cpu, extras;
1367+
int extras;
13681368

13691369
if (!debug_objects_enabled)
13701370
return;
13711371

1372-
/*
1373-
* Initialize the percpu object pools
1374-
*
1375-
* Initialization is not strictly necessary, but was done for
1376-
* completeness.
1377-
*/
1378-
for_each_possible_cpu(cpu)
1379-
INIT_HLIST_HEAD(&per_cpu(percpu_obj_pool.free_objs, cpu));
1380-
13811372
if (!debug_objects_selftest())
13821373
return;
13831374

0 commit comments

Comments
 (0)