License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / sparc / include / asm / cache.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
d113fcd9 2/* cache.h: Cache specific code for the Sparc. These include flushing
1da177e4
LT
3 * and direct tag/data line access.
4 *
d113fcd9 5 * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
1da177e4
LT
6 */
7
8#ifndef _SPARC_CACHE_H
9#define _SPARC_CACHE_H
10
273fca0e
DM
11#define ARCH_SLAB_MINALIGN __alignof__(unsigned long long)
12
1da177e4
LT
13#define L1_CACHE_SHIFT 5
14#define L1_CACHE_BYTES 32
1da177e4 15
d113fcd9
DM
16#ifdef CONFIG_SPARC32
17#define SMP_CACHE_BYTES_SHIFT 5
18#else
19#define SMP_CACHE_BYTES_SHIFT 6
20#endif
21
22#define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT)
23
54cb27a7 24#define __read_mostly __attribute__((__section__(".data..read_mostly")))
d113fcd9 25
1da177e4 26#endif /* !(_SPARC_CACHE_H) */