diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-24 08:29:03 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-24 08:39:48 -0800 |
commit | b7ac64d925d89d117ccf3c7165f3325be59264ca (patch) | |
tree | 3debb24f5e01cde5cc22284e87a2d36e9b14ad03 /get_load.c | |
parent | 8aa0329166dcb3ed4981ef0a782a475ced27f166 (diff) |
unifdef -UCRAY
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'get_load.c')
-rw-r--r-- | get_load.c | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -126,20 +126,10 @@ void GetLoadPoint( #include <sys/fixpoint.h> #endif -#if defined(CRAY) || defined(AIXV3) -#include <sys/param.h> -#define word word_t -#include <sys/sysinfo.h> -#undef word -#undef n_type -#define n_type n_value -#endif /* CRAY */ - #ifdef sequent #include <sys/vm.h> #endif /* sequent */ - #ifdef hcx #include <sys/param.h> #endif /* hcx */ @@ -569,10 +559,6 @@ void GetLoadPoint(w, closure, call_data) #define KERNEL_FILE "/vmunix" #endif /* alliant */ -#ifdef CRAY -#define KERNEL_FILE "/unicos" -#endif /* CRAY */ - #ifdef hpux #define KERNEL_FILE "/hp-ux" #endif /* hpux */ @@ -652,15 +638,6 @@ void GetLoadPoint(w, closure, call_data) # define KERNEL_LOAD_VARIABLE "_Loadavg" # endif /* alliant */ -# ifdef CRAY -# if defined(CRAY2) && OSMAJORVERSION == 4 -# define KERNEL_LOAD_VARIABLE "avenrun" -# else -# define KERNEL_LOAD_VARIABLE "sysinfo" -# define SYSINFO -# endif /* defined(CRAY2) && OSMAJORVERSION == 4 */ -# endif /* CRAY */ - # ifdef hpux # ifdef __hp9000s800 # define KERNEL_LOAD_VARIABLE "avenrun" @@ -753,10 +730,6 @@ void InitLoadPoint() #if defined(umips) && defined(SYSTYPE_SYSV) loadavg_seek &= 0x7fffffff; #endif /* umips && SYSTYPE_SYSV */ -#if (defined(CRAY) && defined(SYSINFO)) - loadavg_seek += ((char *) (((struct sysinfo *)NULL)->avenrun)) - - ((char *) NULL); -#endif /* CRAY && SYSINFO */ kmem = open(KMEM_FILE, O_RDONLY); if (kmem < 0) xload_error("cannot open", KMEM_FILE); } |