|
@@ -23,24 +23,6 @@ extern atomic_long_t calc_load_tasks;
|
|
extern long calc_load_fold_active(struct rq *this_rq);
|
|
extern long calc_load_fold_active(struct rq *this_rq);
|
|
extern void update_cpu_load_active(struct rq *this_rq);
|
|
extern void update_cpu_load_active(struct rq *this_rq);
|
|
|
|
|
|
-/*
|
|
|
|
- * Convert user-nice values [ -20 ... 0 ... 19 ]
|
|
|
|
- * to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ],
|
|
|
|
- * and back.
|
|
|
|
- */
|
|
|
|
-#define NICE_TO_PRIO(nice) (MAX_RT_PRIO + (nice) + 20)
|
|
|
|
-#define PRIO_TO_NICE(prio) ((prio) - MAX_RT_PRIO - 20)
|
|
|
|
-#define TASK_NICE(p) PRIO_TO_NICE((p)->static_prio)
|
|
|
|
-
|
|
|
|
-/*
|
|
|
|
- * 'User priority' is the nice value converted to something we
|
|
|
|
- * can work with better when scaling various scheduler parameters,
|
|
|
|
- * it's a [ 0 ... 39 ] range.
|
|
|
|
- */
|
|
|
|
-#define USER_PRIO(p) ((p)-MAX_RT_PRIO)
|
|
|
|
-#define TASK_USER_PRIO(p) USER_PRIO((p)->static_prio)
|
|
|
|
-#define MAX_USER_PRIO (USER_PRIO(MAX_PRIO))
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* Helpers for converting nanosecond timing to jiffy resolution
|
|
* Helpers for converting nanosecond timing to jiffy resolution
|
|
*/
|
|
*/
|