kernel: rework usage timers
authorAlan Cox <alan@linux.intel.com>
Wed, 10 Oct 2018 21:28:23 +0000 (22:28 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 10 Oct 2018 21:28:23 +0000 (22:28 +0100)
commitf517039cab87fecd6a996695805787ab8f63e6d4
tree69a89d0dbb0b17ffbcb5fd5bdcaf5c8e2eca2277
parentc9d1dad79708d41e19ad99cb1141ebb16244bf9d
kernel: rework usage timers

The old UZI code we started from defined the various time fields in both proc
and udata but used only the udata one. Perhaps an unfinished attempt to move
from proc to udata. While it saves memory keeping it in udata (20 bytes a
process or 320 bytes) we were wasting that memory anyway.

Go back to keeping it in proc as that avoids some messiness and standards
violation in the code, and makes ps work nicely. Possibly we can later move
cutime and cstime into udata but that needs review (otoh it would leave us
80 bytes up on where we started)
Kernel/include/kernel.h
Kernel/process.c
Kernel/start.c
Kernel/syscall_proc.c