summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-02-24 14:13:50 +0100
committerDennis Zhou <dennis@kernel.org>2019-02-26 22:47:58 +0100
commit1b046b445c0f856c3c1eed38a348bd87cc2dc730 (patch)
tree33901e6d6c41fcc0c399b5ed58b8b6b889c68621 /mm
parentpercpu: use nr_groups as check condition (diff)
downloadlinux-1b046b445c0f856c3c1eed38a348bd87cc2dc730.tar.xz
linux-1b046b445c0f856c3c1eed38a348bd87cc2dc730.zip
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: Peng Fan <peng.fan@nxp.com> Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/percpu-km.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu-km.c b/mm/percpu-km.c
index 0f643dc2dc65..b68d5df14731 100644
--- a/mm/percpu-km.c
+++ b/mm/percpu-km.c
@@ -67,7 +67,7 @@ static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp)
pcpu_set_page_chunk(nth_page(pages, i), chunk);
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);
pcpu_chunk_populated(chunk, 0, nr_pages, false);