aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2002-02-14 01:21:23 +0000
committerBruce Evans <bde@FreeBSD.org>2002-02-14 01:21:23 +0000
commit2598b9f117aa3147e4c8484f7d040dac3762b6e7 (patch)
treed9e59fe933081b9f4ec6a89dcbd00fe72669ad69 /sys/sys/proc.h
parent9cbb2a404d7454a22ce9ff602c4b86363a7ddc9d (diff)
downloadsrc-2598b9f117aa3147e4c8484f7d040dac3762b6e7.tar.gz
src-2598b9f117aa3147e4c8484f7d040dac3762b6e7.zip
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).
Notes
Notes: svn path=/head/; revision=90640
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 8d96addd78e5..7bd85f9824e6 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