mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 16:11:38 +00:00
arm64: Implement support for read-mostly sections
As putting data which is read mostly together, we can avoid unnecessary cache line bouncing. Other architectures, such as ARM and x86, adopted the same idea. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Jungseok Lee <jungseoklee85@gmail.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
parent
a2d25a5391
commit
e4f88d833b
@ -32,6 +32,8 @@
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#define __read_mostly __attribute__((__section__(".data..read_mostly")))
|
||||
|
||||
static inline int cache_line_size(void)
|
||||
{
|
||||
u32 cwg = cache_type_cwg();
|
||||
|
Loading…
Reference in New Issue
Block a user