David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Cache definitions for the Hexagon architecture |
| 4 | * |
| 5 | * Copyright (c) 2010-2011,2014 The Linux Foundation. All rights reserved. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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 |