cache.h 555 B

1234567891011121314151617181920212223
  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. #ifndef __ASM_CACHE_H
  8. #define __ASM_CACHE_H
  9. /* Bytes per L1 cache line */
  10. #define L1_CACHE_SHIFT (5)
  11. #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
  12. #define ARCH_DMA_MINALIGN L1_CACHE_BYTES
  13. #define __cacheline_aligned __aligned(L1_CACHE_BYTES)
  14. #define ____cacheline_aligned __aligned(L1_CACHE_BYTES)
  15. /* See http://lwn.net/Articles/262554/ */
  16. #define __read_mostly
  17. #endif