]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: km: no need to consider pcpu_group_offsets[0]
authorPeng Fan <peng.fan@nxp.com>
Sun, 24 Feb 2019 13:13:50 +0000 (13:13 +0000)
committerDennis Zhou <dennis@kernel.org>
Tue, 26 Feb 2019 21:47:58 +0000 (13:47 -0800)
commit3a2efa21dfd536e400bb7ddb107c70d494153423
tree33901e6d6c41fcc0c399b5ed58b8b6b889c68621
parent6d3d7d7b8f56129a0183daf07d30c05d97e4fc4c
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>
mm/percpu-km.c