2006-10-18 05:53:50

by Borislav Petkov

[permalink] [raw]
Subject: readjust comments of task_timeslice for kernel doc

Signed-off-by: <[email protected]>


--- 19-rc2/kernel/sched.c 2006-10-14 08:17:59.000000000 +0200
+++ 19-rc2/kernel/sched.c.new 2006-10-17 06:34:53.000000000 +0200
@@ -160,15 +160,6 @@
#define TASK_PREEMPTS_CURR(p, rq) \
((p)->prio < (rq)->curr->prio)

-/*
- * task_timeslice() scales user-nice values [ -20 ... 0 ... 19 ]
- * to time slice values: [800ms ... 100ms ... 5ms]
- *
- * The higher a thread's priority, the bigger timeslices
- * it gets during one round of execution. But even the lowest
- * priority thread gets MIN_TIMESLICE worth of execution time.
- */
-
#define SCALE_PRIO(x, prio) \
max(x * (MAX_PRIO - prio) / (MAX_USER_PRIO / 2), MIN_TIMESLICE)

@@ -180,6 +171,15 @@ static unsigned int static_prio_timeslic
return SCALE_PRIO(DEF_TIMESLICE, static_prio);
}

+/*
+ * task_timeslice() scales user-nice values [ -20 ... 0 ... 19 ]
+ * to time slice values: [800ms ... 100ms ... 5ms]
+ *
+ * The higher a thread's priority, the bigger timeslices
+ * it gets during one round of execution. But even the lowest
+ * priority thread gets MIN_TIMESLICE worth of execution time.
+ */
+
static inline unsigned int task_timeslice(struct task_struct *p)
{
return static_prio_timeslice(p->static_prio);


___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


2006-10-18 06:04:25

by Ingo Molnar

[permalink] [raw]
Subject: Re: readjust comments of task_timeslice for kernel doc


* Borislav Petkov <[email protected]> wrote:

> Signed-off-by: <[email protected]>

Acked-by: Ingo Molnar <[email protected]>

Ingo