Move cp_time[CPUSTATES] and related #defines to <sys/resource.h>
This commit is contained in:
parent
1259069021
commit
7d51c17432
@ -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_ */
|
||||
|
@ -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 *);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user