]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
CRIS: Define __read_mostly for CRISv32
authorJesper Nilsson <jesper.nilsson@axis.com>
Tue, 3 Aug 2010 16:29:07 +0000 (18:29 +0200)
committerJesper Nilsson <jesper.nilsson@axis.com>
Wed, 4 Aug 2010 11:02:33 +0000 (13:02 +0200)
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/include/arch-v32/arch/cache.h

index dfc73050e6b441a1f1b17ef4944f30023984bcdc..1de779f4f240e6747bc86828896cc2c06971a0c0 100644 (file)
@@ -7,6 +7,8 @@
 #define L1_CACHE_BYTES 32
 #define L1_CACHE_SHIFT 5
 
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+
 void flush_dma_list(dma_descr_data *descr);
 void flush_dma_descr(dma_descr_data *descr, int flush_buf);