cache.h 752 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_IA64_CACHE_H
  3. #define _ASM_IA64_CACHE_H
  4. /*
  5. * Copyright (C) 1998-2000 Hewlett-Packard Co
  6. * David Mosberger-Tang <[email protected]>
  7. */
  8. /* Bytes per L1 (data) cache line. */
  9. #define L1_CACHE_SHIFT CONFIG_IA64_L1_CACHE_SHIFT
  10. #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
  11. #ifdef CONFIG_SMP
  12. # define SMP_CACHE_SHIFT L1_CACHE_SHIFT
  13. # define SMP_CACHE_BYTES L1_CACHE_BYTES
  14. #else
  15. /*
  16. * The "aligned" directive can only _increase_ alignment, so this is
  17. * safe and provides an easy way to avoid wasting space on a
  18. * uni-processor:
  19. */
  20. # define SMP_CACHE_SHIFT 3
  21. # define SMP_CACHE_BYTES (1 << 3)
  22. #endif
  23. #define __read_mostly __section(".data..read_mostly")
  24. #endif /* _ASM_IA64_CACHE_H */