MAX_BONUS = (40*25/100) = 10
#define MAX_BONUS (MAX_USER_PRIO * PRIO_BONUS_RATIO / 100)
MAX_USER_PRIO = 40
----------------------------
#define MAX_USER_PRIO (USER_PRIO( MAX_PRIO)) //USER_PRIO(140)
#define USER_PRIO(p) ((p)- MAX_RT_PRIO) //140-100
PRIO_BONUS_RATIO = 25
----------------------------
#define PRIO_BONUS_RATIO 25
#define MAX_BONUS (MAX_USER_PRIO * PRIO_BONUS_RATIO / 100)
MAX_USER_PRIO = 40
----------------------------
#define MAX_USER_PRIO (USER_PRIO( MAX_PRIO)) //USER_PRIO(140)
#define USER_PRIO(p) ((p)- MAX_RT_PRIO) //140-100
PRIO_BONUS_RATIO = 25
----------------------------
#define PRIO_BONUS_RATIO 25