]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: task: move the cpu_time field to the task-only part
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Aug 2019 08:09:08 +0000 (10:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Aug 2019 08:11:05 +0000 (10:11 +0200)
commit247a8b1d8131a9bcee98f65da8ebb2640787ec33
tree3fa195cfdb67b863ceaf2baa97f80cfe7d1b0587
parente0d0b4089dd1c1dad94580de9de80985730da593
CLEANUP: task: move the cpu_time field to the task-only part

The CPU time accounting field called "cpu_time" is used only by tasks
and not tasklets, yet it used to be stored into the TASK_COMMON part,
which doesn't make sense and wastes tasklet memory. In addition, moving
it to tasks also helps better group the various parts in cache lines.
include/types/task.h