blob: 931719dfad28559c50c6299dce48e319396bda94 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Cache definitions for the Hexagon architecture
4 *
5 * Copyright (c) 2010-2011,2014 The Linux Foundation. All rights reserved.
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00006 */
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