18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Cache definitions for the Hexagon architecture
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2010-2011,2014 The Linux Foundation. All rights reserved.
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef __ASM_CACHE_H
98c2ecf20Sopenharmony_ci#define __ASM_CACHE_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/* Bytes per L1 cache line */
128c2ecf20Sopenharmony_ci#define L1_CACHE_SHIFT		(5)
138c2ecf20Sopenharmony_ci#define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define ARCH_DMA_MINALIGN	L1_CACHE_BYTES
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define __cacheline_aligned	__aligned(L1_CACHE_BYTES)
188c2ecf20Sopenharmony_ci#define ____cacheline_aligned	__aligned(L1_CACHE_BYTES)
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci/* See http://lwn.net/Articles/262554/ */
218c2ecf20Sopenharmony_ci#define __read_mostly
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#endif
24