ia64/xen-unstable

annotate xen/include/asm-ia64/linux-xen/asm/cache.h @ 9770:ced37bea0647

[IA64] FPH enabling + cleanup

Move contents of switch_to macro from xensystem.h to context_switch function.
Initialize FPU on all processors. FPH is always enabled in Xen.
Speed up context-switch (a little bit!) by not enabling/disabling FPH.
Cleanup (unused function/variablesi/fields, debug printf...)
vmx_ia64_switch_to removed (was unused).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Tue Apr 25 22:35:41 2006 -0600 (2006-04-25)
parents 0ee00faf332d
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 */