24 #define NICE_WIDTH (MAX_NICE - MIN_NICE + 1)
27 #define MAX_RT_PRIO 100
30 #define MAX_PRIO (MAX_RT_PRIO + NICE_WIDTH)
33 #define DEFAULT_PRIO (MAX_RT_PRIO + NICE_WIDTH / 2)
37 #define NICE_TO_PRIO(nice) ((nice) + DEFAULT_PRIO)
41 #define PRIO_TO_NICE(prio) ((prio)-DEFAULT_PRIO)
46 #define USER_PRIO(p) ((p)-MAX_RT_PRIO)
49 #define TASK_USER_PRIO(p) USER_PRIO((p)->static_prio)
52 #define MAX_USER_PRIO (USER_PRIO(MAX_PRIO))
57 88761, 71755, 56483, 46273, 36291,
58 29154, 23254, 18705, 14949, 11916,
59 9548, 7620, 6100, 4904, 3906,
60 3121, 2501, 1991, 1586, 1277,
61 1024, 820, 655, 526, 423,
62 335, 272, 215, 172, 137,
68 #define GET_WEIGHT(prio) prio_to_weight[USER_PRIO((prio))]
71 #define NICE_0_LOAD GET_WEIGHT(DEFAULT_PRIO)
#define NICE_WIDTH
Niceness range.
Definition: prio.h:24
static const int prio_to_weight[NICE_WIDTH]
Table that transforms the priority into a weight, used for computing the virtual runtime.
Definition: prio.h:56