History

sched, treewide: Replace hardcoded nice values with MIN_NICE/MAX_NICE

Replace various -20/+19 hardcoded nice values with MIN_NICE/MAX_NICE.

Dongsheng Yang committed 12 years ago

Commit 8698a741 parent 104479118 files · +21 −21Browse files

Showing the changes to kernel/workqueue.c (1 of 18 files). Show all

Unified · Split

kernel/workqueue.c+3−3
@@ -100,10 +100,10 @@ enum { · 99 unmodified lines
100 100
101 /*101 /*
102 * Rescue workers are used only on emergencies and shared by102 * Rescue workers are used only on emergencies and shared by
103 * all cpus. Give -20.103 * all cpus. Give MIN_NICE.
104 */104 */
105 RESCUER_NICE_LEVEL = -20,105 RESCUER_NICE_LEVEL = MIN_NICE,
106 HIGHPRI_NICE_LEVEL = -20,106 HIGHPRI_NICE_LEVEL = MIN_NICE,
107 107
108 WQ_NAME_LEN = 24,108 WQ_NAME_LEN = 24,
109};109};