summaryrefslogtreecommitdiff
path: root/arch/loongarch/kernel/numa.c
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2023-09-06 17:53:09 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2023-09-06 17:53:09 +0300
commitad3ff105611b9b06e16ae57e97b48916ff93dd46 (patch)
treeebcf9eef57173f5e341bee00dbfcb074e9b36251 /arch/loongarch/kernel/numa.c
parent303be4b33562a5b689261ced1616bf16ad49efa7 (diff)
downloadlinux-ad3ff105611b9b06e16ae57e97b48916ff93dd46.tar.xz
LoongArch: Remove shm_align_mask and use SHMLBA instead
Both shm_align_mask and SHMLBA want to avoid cache alias. But they are inconsistent: shm_align_mask is (PAGE_SIZE - 1) while SHMLBA is SZ_64K, but PAGE_SIZE is not always equal to SZ_64K. This may cause problems when shmat() twice. Fix this problem by removing shm_align_mask and using SHMLBA (strictly SHMLBA - 1) instead. Reported-by: Jiantao Shan <shanjiantao@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/kernel/numa.c')
0 files changed, 0 insertions, 0 deletions