Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f1c2747 authored by Tirumalesh Chalamarla's avatar Tirumalesh Chalamarla Committed by Sarangdhar Joshi
Browse files

arm64: Increase the max granular size



Increase the standard cacheline size to avoid having locks in the same
cacheline.

Cavium's ThunderX core implements cache lines of 128 byte size. With
current granulare size of 64 bytes (L1_CACHE_SHIFT=6) two locks could
share the same cache line leading a performance degradation.
Increasing the size fixes that.

Increasing the size has no negative impact to cache invalidation on
systems with a smaller cache line. There is an impact on memory usage,
but that's not too important for arm64 use cases.

Change-Id: Ibb0fd07bdad677effe4229726706cd7413f65505
Signed-off-by: default avatarTirumalesh Chalamarla <tchalamarla@cavium.com>
Signed-off-by: default avatarRobert Richter <rrichter@cavium.com>
Acked-by: default avatarTimur Tabi <timur@codeaurora.org>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Git-commit: 97303480753e48fb313dc0e15daaf11b0451cdb8
Signed-off-by: default avatarSarangdhar Joshi <spjoshi@codeaurora.org>
parent 33a7804b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment