Move some oddly placed accounting code
commitc7326f21034f5be327fe7a10a07986dddd6cac9b
authorJiří Zárevúcky <zarevucky.jiri@gmail.com>
Wed, 22 Feb 2023 12:09:47 +0000 (22 13:09 +0100)
committerJiří Zárevúcky <zarevucky.jiri@gmail.com>
Sat, 25 Feb 2023 11:51:04 +0000 (25 12:51 +0100)
tree1f866971488e012d6c51591748b18f440d1cc8f2
parent4777e022eec9ed5750ce62ae94a262f006a515fc
Move some oddly placed accounting code

Thread ucycles and kcycles should be transferred to the task
accounting when a thread is destroyed, regardless of the
circumstances of its exit. The original code seems to only
do so when a thread returns from its implementing function.
kernel/generic/src/proc/thread.c