diff options
author | phk <phk@FreeBSD.org> | 2003-02-16 13:30:29 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-16 13:30:29 +0000 |
commit | 21b8ebdbd4e746e71a00cc1c9107586f5f9b3be8 (patch) | |
tree | a41694f5b0d4b2c1c4d3bf00f2622d914b19c508 /sys | |
parent | 4f3d0c80f39cabf970595d7cf688c6872a1ac69a (diff) | |
download | FreeBSD-src-21b8ebdbd4e746e71a00cc1c9107586f5f9b3be8.zip FreeBSD-src-21b8ebdbd4e746e71a00cc1c9107586f5f9b3be8.tar.gz |
Move cp_time[CPUSTATES] and related #defines to <sys/resource.h>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/dkstat.h | 12 | ||||
-rw-r--r-- | sys/sys/resource.h | 8 |
2 files changed, 8 insertions, 12 deletions
diff --git a/sys/sys/dkstat.h b/sys/sys/dkstat.h index 9c714f5..ef19e2b 100644 --- a/sys/sys/dkstat.h +++ b/sys/sys/dkstat.h @@ -42,16 +42,4 @@ #ifndef _SYS_DKSTAT_H_ #define _SYS_DKSTAT_H_ 1 -#define CP_USER 0 -#define CP_NICE 1 -#define CP_SYS 2 -#define CP_INTR 3 -#define CP_IDLE 4 -#define CPUSTATES 5 - -#ifdef _KERNEL - -extern long cp_time[CPUSTATES]; -#endif - #endif /* _SYS_DKSTAT_H_ */ diff --git a/sys/sys/resource.h b/sys/sys/resource.h index b29e594..c176003 100644 --- a/sys/sys/resource.h +++ b/sys/sys/resource.h @@ -134,8 +134,16 @@ struct loadavg { long fscale; }; +#define CP_USER 0 +#define CP_NICE 1 +#define CP_SYS 2 +#define CP_INTR 3 +#define CP_IDLE 4 +#define CPUSTATES 5 + #ifdef _KERNEL extern struct loadavg averunnable; +extern long cp_time[CPUSTATES]; int dosetrlimit(struct thread *, u_int, struct rlimit *); |