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

This commit is contained in:
Poul-Henning Kamp 2003-02-16 13:30:29 +00:00
parent 1259069021
commit 7d51c17432
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 *);