mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[PATCH] sched: uninline task_timeslice
"Chen, Kenneth W" <kenneth.w.chen@intel.com> uninline task_timeslice() - reduces code footprint noticeably, and it's slowpath code. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
687f1661d3
commit
48c08d3f8f
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@
|
|||
#define SCALE_PRIO(x, prio) \
|
||||
max(x * (MAX_PRIO - prio) / (MAX_USER_PRIO/2), MIN_TIMESLICE)
|
||||
|
||||
static inline unsigned int task_timeslice(task_t *p)
|
||||
static unsigned int task_timeslice(task_t *p)
|
||||
{
|
||||
if (p->static_prio < NICE_TO_PRIO(0))
|
||||
return SCALE_PRIO(DEF_TIMESLICE*4, p->static_prio);
|
||||
|
|
Loading…
Reference in a new issue