sched: Fix kernel-doc markup
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 1 Dec 2020 12:09:06 +0000 (13:09 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Dec 2020 09:30:31 +0000 (10:30 +0100)
Kernel-doc requires that a kernel-doc markup to be immediately
below the function prototype, as otherwise it will rename it.
So, move sys_sched_yield() markup to the right place.

Also fix the cpu_util() markup: Kernel-doc markups
should use this format:
        identifier - description

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/50cd6f460aeb872ebe518a8e9cfffda2df8bdb0a.1606823973.git.mchehab+huawei@kernel.org
kernel/sched/core.c
kernel/sched/fair.c

index a7abbba98083217697b13fb13e568110f04eeb8d..7af80c3fce12b984cafa8d00e0c5f121ca784d74 100644 (file)
@@ -6611,14 +6611,6 @@ SYSCALL_DEFINE3(sched_getaffinity, pid_t, pid, unsigned int, len,
        return ret;
 }
 
-/**
- * sys_sched_yield - yield the current processor to other threads.
- *
- * This function yields the current CPU to other tasks. If there are no
- * other threads running on this CPU then this function will return.
- *
- * Return: 0.
- */
 static void do_sched_yield(void)
 {
        struct rq_flags rf;
@@ -6636,6 +6628,14 @@ static void do_sched_yield(void)
        schedule();
 }
 
+/**
+ * sys_sched_yield - yield the current processor to other threads.
+ *
+ * This function yields the current CPU to other tasks. If there are no
+ * other threads running on this CPU then this function will return.
+ *
+ * Return: 0.
+ */
 SYSCALL_DEFINE0(sched_yield)
 {
        do_sched_yield();
index e7e21ac479a26d81abf29145a3e3f736761c3e6b..f5dcedacc104342b10761dd0c2049ff2969a08bd 100644 (file)
@@ -6330,7 +6330,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 }
 
 /**
- * Amount of capacity of a CPU that is (estimated to be) used by CFS tasks
+ * cpu_util - Estimates the amount of capacity of a CPU used by CFS tasks.
  * @cpu: the CPU to get the utilization of
  *
  * The unit of the return value must be the one of capacity so we can compare