MINOR: time: uninline report_idle() and move it to task.c
authorWilly Tarreau <w@1wt.eu>
Thu, 30 Sep 2021 06:52:11 +0000 (08:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Oct 2021 16:37:50 +0000 (18:37 +0200)
commit6136989a2272d9b4422de6486f9b9d492f2c8488
treea1d9fdf004f81ff5a47e7a855f8602065fbb4ece
parentbeeabf531468bc2f40845a83e76726130dc9f98e
MINOR: time: uninline report_idle() and move it to task.c

I don't know why I inlined this one, this makes no sense given that it's
only used for stats, and it starts a circular dependency on tinfo.h which
can be problematic in the future. In addition, all the stuff related to
idle time calculation should be with the rest of the scheduler, which
currently is in task.{c,h}, so let's move it there.
include/haproxy/task.h
include/haproxy/time.h
src/stats.c
src/task.c