diff options
author | Jui-Tse Huang <juitse.huang@gmail.com> | 2022-04-15 06:36:18 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2022-04-16 11:54:32 +0300 |
commit | 6c757e9f55f02fbc226823f8d441cd03cc282109 (patch) | |
tree | 10e295893d738b7141e795cfc949882c7f03998d /Documentation/ide/warm-plug-howto.rst | |
parent | 389cfd96703ea7390c2ba3968dbdac0e48c396cf (diff) | |
download | linux-6c757e9f55f02fbc226823f8d441cd03cc282109.tar.xz |
docs/scheduler: fix unit error
The unit mentioned in the documentation of scheduler statistics is
outdated which may mislead the readers.
The unit of statistics that is reported by /proc/schedstat is modified
to nanosecond, and the unit of statistics that is reported by
/proc/PID/schedstat is provided as well to make the context consistent.
The rq_cpu_time and the rq_sched_info.run_delay of a run queue, and the
sched_info.run_delay of a task are all updated based on the clock of the
run queue, while the se.sum_exec_runtime of a task is updated based on
the clock_task of the run queue of the task. Both the clock and
clock_task are relied on the return value of the function sched_clock()
which is in the unit of nanosecond.
Signed-off-by: Jui-Tse Huang <juitse.huang@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/ide/warm-plug-howto.rst')
0 files changed, 0 insertions, 0 deletions