xref: /OK3568_Linux_fs/kernel/arch/mips/include/asm/cache.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
3*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
4*4882a593Smuzhiyun  * for more details.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Copyright (C) 1997, 98, 99, 2000, 2003 Ralf Baechle
7*4882a593Smuzhiyun  * Copyright (C) 1999 Silicon Graphics, Inc.
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun #ifndef _ASM_CACHE_H
10*4882a593Smuzhiyun #define _ASM_CACHE_H
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #include <kmalloc.h>
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #define L1_CACHE_SHIFT		CONFIG_MIPS_L1_CACHE_SHIFT
15*4882a593Smuzhiyun #define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #define __read_mostly __section(".data..read_mostly")
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #endif /* _ASM_CACHE_H */
20