Skip to content
Snippets Groups Projects
Commit 1b046b44 authored by Peng Fan's avatar Peng Fan Committed by Dennis Zhou
Browse files

percpu: km: no need to consider pcpu_group_offsets[0]


percpu-km is used on UP systems which only has one group,
so the group offset will be always 0, there is no need
to subtract pcpu_group_offsets[0] when assigning chunk->base_addr

Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Acked-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
parent 2de7852f
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp) ...@@ -67,7 +67,7 @@ static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp)
pcpu_set_page_chunk(nth_page(pages, i), chunk); pcpu_set_page_chunk(nth_page(pages, i), chunk);
chunk->data = pages; chunk->data = pages;
chunk->base_addr = page_address(pages) - pcpu_group_offsets[0]; chunk->base_addr = page_address(pages);
spin_lock_irqsave(&pcpu_lock, flags); spin_lock_irqsave(&pcpu_lock, flags);
pcpu_chunk_populated(chunk, 0, nr_pages, false); pcpu_chunk_populated(chunk, 0, nr_pages, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment