From: Paul Mundt Date: Tue, 30 Oct 2007 08:39:07 +0000 (+0900) Subject: sh: Provide a __read_mostly section wrapper. X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~36604^2~10 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=121fc47db6f4868890225e987447ee59a1e1c5b5;p=mirror_ubuntu-artful-kernel.git sh: Provide a __read_mostly section wrapper. Signed-off-by: Paul Mundt --- diff --git a/include/asm-sh/cache.h b/include/asm-sh/cache.h index 0fe7cf9a0433..01e5cf51ba9b 100644 --- a/include/asm-sh/cache.h +++ b/include/asm-sh/cache.h @@ -19,6 +19,8 @@ #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) +#define __read_mostly __attribute__((__section__(".data.read_mostly"))) + #ifndef __ASSEMBLY__ struct cache_info { unsigned int ways; /* Number of cache ways */