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
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

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