diff options
author | Dong Aisheng <aisheng.dong@nxp.com> | 2021-05-18 18:14:03 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-06-15 19:05:28 +0100 |
commit | c70fe14f83ae0793a1119fa5741b19ab9ba411b2 (patch) | |
tree | be780f3d8234a4d28fa2a37bc8bfbc383c111f0c /arch/arm64/kernel | |
parent | 9163f01130304fab1f74683d7d44632da7bda637 (diff) | |
download | linux-c70fe14f83ae0793a1119fa5741b19ab9ba411b2.tar.bz2 |
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>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/head.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index 96873dfa67fd..b70db34458ec 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S @@ -195,7 +195,7 @@ SYM_CODE_END(preserve_boot_args) and \iend, \iend, \istart // iend = (vend >> shift) & (ptrs - 1) mov \istart, \ptrs mul \istart, \istart, \count - add \iend, \iend, \istart // iend += (count - 1) * ptrs + add \iend, \iend, \istart // iend += count * ptrs // our entries span multiple tables lsr \istart, \vstart, \shift |