GNU Linux-libre 6.8.9-gnu
[releases.git] / arch / hexagon / include / asm / cache.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Cache definitions for the Hexagon architecture
4  *
5  * Copyright (c) 2010-2011,2014 The Linux Foundation. All rights reserved.
6  */
7
8 #ifndef __ASM_CACHE_H
9 #define __ASM_CACHE_H
10
11 /* Bytes per L1 cache line */
12 #define L1_CACHE_SHIFT          (5)
13 #define L1_CACHE_BYTES          (1 << L1_CACHE_SHIFT)
14
15 #define ARCH_DMA_MINALIGN       L1_CACHE_BYTES
16
17 #define __cacheline_aligned     __aligned(L1_CACHE_BYTES)
18 #define ____cacheline_aligned   __aligned(L1_CACHE_BYTES)
19
20 /* See http://lwn.net/Articles/262554/ */
21 #define __read_mostly
22
23 #endif