diff options
author | bde <bde@FreeBSD.org> | 2002-02-14 01:21:23 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-02-14 01:21:23 +0000 |
commit | 0a7fefb6effa4f154f578894ae6556fb5a2fd9a9 (patch) | |
tree | d9e59fe933081b9f4ec6a89dcbd00fe72669ad69 | |
parent | 3c1f5c95dfa99932cce8d02ffe38f5bb560a948c (diff) | |
download | FreeBSD-src-0a7fefb6effa4f154f578894ae6556fb5a2fd9a9.zip FreeBSD-src-0a7fefb6effa4f154f578894ae6556fb5a2fd9a9.tar.gz |
Fixed sign extension bugs in previous commit. They didn't completely
break scheduling because negative priorities were most fixed up by
converting kg_pri_user back to the correct type.
Fixed some style bugs in previous commit (non-terminated sentence fragments
and regressions in comments).
-rw-r--r-- | sys/sys/proc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 8d96add..7bd85f9 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -267,8 +267,8 @@ struct thread { /* XXXKSE p_md is in the "on your own" section in old struct proc */ struct mdthread td_md; /* (k) Any machine-dependent fields. */ register_t td_retval[2]; /* (k) Syscall aux returns. */ - u_char td_base_pri; /* (j) Thread base kernel priority */ - u_char td_priority; /* (j) Thread active priority */ + u_char td_base_pri; /* (j) Thread base kernel priority. */ + u_char td_priority; /* (j) Thread active priority. */ #define td_endcopy td_pcb struct ucred *td_ucred; /* (k) Reference to credentials. */ @@ -342,8 +342,8 @@ struct ksegrp { #define kg_endzero kg_pri_class #define kg_startcopy kg_endzero - char kg_pri_class; /* (j) */ - char kg_user_pri; /* (j) priority when in userland */ + u_char kg_pri_class; /* (j) Scheduling class. */ + u_char kg_user_pri; /* (j) User pri from estcpu and nice. */ char kg_nice; /* (j?/k?) Process "nice" value. */ struct rtprio kg_rtprio; /* (j) Realtime priority. */ #define kg_endcopy kg_runnable |