ia64/xen-unstable

annotate xen/include/asm-ia64/linux-xen/asm/cache.h @ 7922:0ee00faf332d

Adapt to removal of #ifdef ia64 in xmalloc (handle SMP_CACHE_SHIFT)
author djm@kirby.fc.hp.com
date Wed Nov 23 15:23:28 2005 -0600 (2005-11-23)
parents
children 6b821e310597
rev   line source
djm@7922 1 #ifndef _ASM_IA64_CACHE_H
djm@7922 2 #define _ASM_IA64_CACHE_H
djm@7922 3
djm@7922 4 #include <linux/config.h>
djm@7922 5
djm@7922 6 /*
djm@7922 7 * Copyright (C) 1998-2000 Hewlett-Packard Co
djm@7922 8 * David Mosberger-Tang <davidm@hpl.hp.com>
djm@7922 9 */
djm@7922 10
djm@7922 11 /* Bytes per L1 (data) cache line. */
djm@7922 12 #define L1_CACHE_SHIFT CONFIG_IA64_L1_CACHE_SHIFT
djm@7922 13 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
djm@7922 14
djm@7922 15 #define L1_CACHE_SHIFT_MAX 7 /* largest L1 which this arch supports */
djm@7922 16
djm@7922 17 #ifdef XEN
djm@7922 18 # define SMP_CACHE_SHIFT L1_CACHE_SHIFT
djm@7922 19 # define SMP_CACHE_BYTES L1_CACHE_BYTES
djm@7922 20 #else
djm@7922 21 #ifdef CONFIG_SMP
djm@7922 22 # define SMP_CACHE_SHIFT L1_CACHE_SHIFT
djm@7922 23 # define SMP_CACHE_BYTES L1_CACHE_BYTES
djm@7922 24 #else
djm@7922 25 /*
djm@7922 26 * The "aligned" directive can only _increase_ alignment, so this is
djm@7922 27 * safe and provides an easy way to avoid wasting space on a
djm@7922 28 * uni-processor:
djm@7922 29 */
djm@7922 30 # define SMP_CACHE_SHIFT 3
djm@7922 31 # define SMP_CACHE_BYTES (1 << 3)
djm@7922 32 #endif
djm@7922 33 #endif
djm@7922 34
djm@7922 35 #endif /* _ASM_IA64_CACHE_H */