mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
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).
This commit is contained in:
parent
9cbb2a404d
commit
2598b9f117
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90640
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user