]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: cache_line_size() returns larger value for cache line size.
authorchris hyser <chris.hyser@oracle.com>
Thu, 18 May 2017 18:18:33 +0000 (12:18 -0600)
committerShannon Nelson <shannon.nelson@oracle.com>
Wed, 31 May 2017 23:43:53 +0000 (16:43 -0700)
commitf7fef3fdf4af3073f99d44dca39ff810b1f3cded
tree8042ee49208b75f6a0c0f8bdb6d9f5955f8f8e0d
parent7e4094414df90978ade44819c8027f66e510b7fa
sparc64: cache_line_size() returns larger value for cache line size.

SPARC currently returns L1 data cache line size (as low as 32 bytes on
some systems) though L2 and L3 cache line sizes may be higher.  As
cache_line_size() is used by code to align memory requests to prevent
unnecessary cache line sharing, this patch returns the max of L2 and L3
sizes, currently 64 bytes.

OraBug: 26045057

Signed-off-by: Chris Hyser <chris.hyser@oracle.com>
Reviewed-by: Rob Gardner <rob.gardner@oracle.com>
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
arch/sparc/Kconfig
arch/sparc/include/asm/cache.h