arm64: mm: fix the count comments in compute_indices

'count - 1' is confusing and not comply with the real code running.
'count' actually represents the extra entries required, no need minus 1.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210518101405.1048860-3-aisheng.dong@nxp.com
Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
Dong Aisheng 2021-05-18 18:14:03 +08:00 committed by Will Deacon
parent 9163f01130
commit c70fe14f83
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ SYM_CODE_END(preserve_boot_args)
and \iend, \iend, \istart // iend = (vend >> shift) & (ptrs - 1) and \iend, \iend, \istart // iend = (vend >> shift) & (ptrs - 1)
mov \istart, \ptrs mov \istart, \ptrs
mul \istart, \istart, \count mul \istart, \istart, \count
add \iend, \iend, \istart // iend += (count - 1) * ptrs add \iend, \iend, \istart // iend += count * ptrs
// our entries span multiple tables // our entries span multiple tables
lsr \istart, \vstart, \shift lsr \istart, \vstart, \shift