ARM: implement support for read-mostly sections

Author Russell King <rmk+kernel@arm.linux.org.uk>
Author date 2010-12-04 17:08:32
Author local date 2010-12-04 17:08:32 +0000
Committer Russell King <rmk+kernel@arm.linux.org.uk>
Committer date 2010-12-05 08:39:36
Committer local date 2010-12-05 08:39:36 +0000
Commit daf8741675562197d4fb4c4e9d773f53494203a5
Tree a21505624d4c7963ae70e46f25b13f449c22cc18
Parent 0b05da7200dd56a5364c4d9cf5441715c1d706ed
ARM: implement support for read-mostly sections

As our SMP implementation uses MESI protocols.  Grouping together data
which is mostly only read together means that we avoid unnecessary
cache line bouncing when this code shares a cache line with other data.

In other words, cache lines associated with read-mostly data are
expected to spend most of their time in shared state.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Affected files:
arch/arm/include/asm/cache.h
arch/arm/kernel/vmlinux.lds.S