cache.h 732 B

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