Move cp_time[CPUSTATES] and related #defines to <sys/resource.h>

This commit is contained in:
phk 2003-02-16 13:30:29 +00:00
parent 4f3d0c80f3
commit 21b8ebdbd4
2 changed files with 8 additions and 12 deletions

View File

@ -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_ */

View File

@ -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 *);