Merge branch 'for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu
Pull percpu updates from Dennis Zhou: "A couple of updates to clean up the code with no change in behavior" * 'for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu: percpu: Use struct_size() helper percpu: fix typo in pcpu_setup_first_chunk() comment percpu: Make pcpu_setup_first_chunk() void function
This commit is contained in:
@@ -134,10 +134,7 @@ setup_per_cpu_areas(void)
|
||||
ai->atom_size = PAGE_SIZE;
|
||||
ai->alloc_size = PERCPU_PAGE_SIZE;
|
||||
|
||||
rc = pcpu_setup_first_chunk(ai, __per_cpu_start + __per_cpu_offset[0]);
|
||||
if (rc)
|
||||
panic("failed to setup percpu area (err=%d)", rc);
|
||||
|
||||
pcpu_setup_first_chunk(ai, __per_cpu_start + __per_cpu_offset[0]);
|
||||
pcpu_free_alloc_info(ai);
|
||||
}
|
||||
#else
|
||||
|
@@ -245,10 +245,7 @@ void __init setup_per_cpu_areas(void)
|
||||
gi->cpu_map = &cpu_map[unit];
|
||||
}
|
||||
|
||||
rc = pcpu_setup_first_chunk(ai, base);
|
||||
if (rc)
|
||||
panic("failed to setup percpu area (err=%d)", rc);
|
||||
|
||||
pcpu_setup_first_chunk(ai, base);
|
||||
pcpu_free_alloc_info(ai);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user