Make proc's kg_nice/ki_nice explicitly signed for PPC. This is a
no-op on {i386/alpha/ia64/sparc64} where chars are signed by default. Should help ARM and S390 which also suffer from this. Tested on: ppc, i386, objdump disasm before/after diffs Reviewed by: obrien, bde (a while back)
This commit is contained in:
parent
b9e0f0e160
commit
f96af44358
@ -510,7 +510,7 @@ struct ksegrp {
|
||||
#define kg_startcopy kg_endzero
|
||||
u_char kg_pri_class; /* (j) Scheduling class. */
|
||||
u_char kg_user_pri; /* (j) User pri from estcpu and nice. */
|
||||
char kg_nice; /* (c + j) Process "nice" value. */
|
||||
signed char kg_nice; /* (c + j) Process "nice" value. */
|
||||
#define kg_endcopy kg_numthreads
|
||||
int kg_numthreads; /* (j) Num threads in total. */
|
||||
int kg_kses; /* (j) Num KSEs in group. */
|
||||
|
@ -143,7 +143,7 @@ struct kinfo_proc {
|
||||
long ki_kiflag; /* KI_* flags (below) */
|
||||
int ki_traceflag; /* Kernel trace points */
|
||||
char ki_stat; /* S* process status */
|
||||
char ki_nice; /* Process "nice" value */
|
||||
signed char ki_nice; /* Process "nice" value */
|
||||
char ki_lock; /* Process lock (prevent swap) count */
|
||||
char ki_rqindex; /* Run queue index */
|
||||
u_char ki_oncpu; /* Which cpu we are on */
|
||||
|
Loading…
x
Reference in New Issue
Block a user