xref: /linux/arch/arc/include/asm/cache.h (revision 5210d1e6889c8183ecad269e86e2d9c524015b5f)
1 /*
2  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8 
9 #ifndef __ARC_ASM_CACHE_H
10 #define __ARC_ASM_CACHE_H
11 
12 /* In case $$ not config, setup a dummy number for rest of kernel */
13 #ifndef CONFIG_ARC_CACHE_LINE_SHIFT
14 #define L1_CACHE_SHIFT		6
15 #else
16 #define L1_CACHE_SHIFT		CONFIG_ARC_CACHE_LINE_SHIFT
17 #endif
18 
19 #define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)
20 
21 #endif /* _ASM_CACHE_H */
22