History

debugobjects: Remove pointless hlist initialization

It's BSS zero initialized.

Thomas Gleixner committed 2 years ago

Commit 3f397bf1 parent 55fb4121 file · +1 −10Browse files

Showing the changes to lib/debugobjects.c (1 of 1 file). Show all

Unified · Split

lib/debugobjects.c+1−10
@@ -1364,20 +1364,11 @@ free: · 1363 unmodified lines
1364void __init debug_objects_mem_init(void)1364void __init debug_objects_mem_init(void)
1365{1365{
1366 struct kmem_cache *cache;1366 struct kmem_cache *cache;
1367 int cpu, extras;1367 int extras;
1368 1368
1369 if (!debug_objects_enabled)1369 if (!debug_objects_enabled)
1370 return;1370 return;
1371 1371
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
1381 if (!debug_objects_selftest())1372 if (!debug_objects_selftest())
1382 return;1373 return;
1383 1374

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t