diff options
author | lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM> | 2009-03-26 09:54:44 +0800 |
---|---|---|
committer | lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM> | 2009-03-26 09:54:44 +0800 |
commit | 94e7edb1e6b194fffd0e7901c0b32e9fc836bc5b (patch) | |
tree | 578105e1f80b27ca4200d731633225fbdbe1acf8 /usr/src/uts/sparc/sys/cpu.h | |
parent | 09ce0d4acf1a79c720d7e54b60e87cbfa0f1b2d6 (diff) | |
download | illumos-joyent-94e7edb1e6b194fffd0e7901c0b32e9fc836bc5b.tar.gz |
6812228 No need to do software checksum for multiple-mblk packets in ip_tcp_input()
6694625 Performance falls off the cliff with large IO sizes
PSARC/2009/039 prefetch interfaces
6812282 PSARC 2009/039 prefetch interfaces
Contributed by Paul Durrant (pdurrant@solarflare.com)
Diffstat (limited to 'usr/src/uts/sparc/sys/cpu.h')
-rw-r--r-- | usr/src/uts/sparc/sys/cpu.h | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/usr/src/uts/sparc/sys/cpu.h b/usr/src/uts/sparc/sys/cpu.h index adf3d98c42..126b4826b8 100644 --- a/usr/src/uts/sparc/sys/cpu.h +++ b/usr/src/uts/sparc/sys/cpu.h @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -31,10 +31,17 @@ */ #include <sys/bustypes.h> +#if defined(_KERNEL) +#if defined(__GNUC__) && defined(_ASM_INLINES) +#include <asm/cpu.h> +#endif +#endif /* _KERNEL */ + #ifdef __cplusplus extern "C" { #endif + /* * Global kernel variables of interest */ @@ -70,22 +77,6 @@ extern int vac; extern void cpu_smt_pause(); #define SMT_PAUSE() { if (&cpu_smt_pause) cpu_smt_pause(); } -/* - * used to preload L2 cache - */ -#if !defined(__lint) && defined(__GNUC__) - -extern __inline__ void -prefetch64(caddr_t addr) -{ - __asm__ __volatile__( - "prefetch [%0], #n_writes\n\t" - : "=r" (addr) - : "0" (addr)); -} - -#endif /* !__lint && __GNUC__ */ - #endif /* defined(_KERNEL) && !defined(_ASM) */ #ifdef __cplusplus |