projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2d25a5
)
arm64: Implement support for read-mostly sections
author
Jungseok Lee
<jungseoklee85@gmail.com>
Tue, 2 Dec 2014 17:49:24 +0000
(17:49 +0000)
committer
Will Deacon
<will.deacon@arm.com>
Wed, 3 Dec 2014 10:19:35 +0000
(10:19 +0000)
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>
arch/arm64/include/asm/cache.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm64/include/asm/cache.h
b/arch/arm64/include/asm/cache.h
index 88cc05b5f3aca1ae9d799c4d82880a6bd23c9b3e..bde449936e2f07fda4abf1e3c840fe9401620708 100644
(file)
--- a/
arch/arm64/include/asm/cache.h
+++ b/
arch/arm64/include/asm/cache.h
@@
-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();