cache.h 756 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _ASM_IA64_CACHE_H
  2. #define _ASM_IA64_CACHE_H
  3. #include <linux/config.h>
  4. /*
  5. * Copyright (C) 1998-2000 Hewlett-Packard Co
  6. * David Mosberger-Tang <davidm@hpl.hp.com>
  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. #define L1_CACHE_SHIFT_MAX 7 /* largest L1 which this arch supports */
  12. #ifdef CONFIG_SMP
  13. # define SMP_CACHE_SHIFT L1_CACHE_SHIFT
  14. # define SMP_CACHE_BYTES L1_CACHE_BYTES
  15. #else
  16. /*
  17. * The "aligned" directive can only _increase_ alignment, so this is
  18. * safe and provides an easy way to avoid wasting space on a
  19. * uni-processor:
  20. */
  21. # define SMP_CACHE_SHIFT 3
  22. # define SMP_CACHE_BYTES (1 << 3)
  23. #endif
  24. #endif /* _ASM_IA64_CACHE_H */