Remove p_rtime from struct proc and replace it by passing the timespec
authorclaudio <claudio@openbsd.org>
Tue, 29 Aug 2023 16:19:34 +0000 (16:19 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 29 Aug 2023 16:19:34 +0000 (16:19 +0000)
commit94c38e45691bfc7020490efddf82c55c25ceeb99
tree20c21b11817630e9f984da59dddc542e31f83276
parentcee382980951d0363f24d6b450a8472231f9467d
Remove p_rtime from struct proc and replace it by passing the timespec
as argument to the tuagg_locked function.

- Remove incorrect use of p_rtime in other parts of the tree. p_rtime was
almost always 0 so including it in any sum did not alter the result.
- In main() the update of time can be further simplified since at that time
only the primary cpu is running.
- Add missing nanouptime() call in cpu_hatch() for hppa
- Rename tuagg_unlocked to tuagg_locked like it is done in the rest of
  the tree.

OK cheloha@ dlg@
sys/arch/hppa/dev/cpu.c
sys/kern/init_main.c
sys/kern/kern_exit.c
sys/kern/kern_resource.c
sys/kern/kern_sched.c
sys/kern/kern_time.c
sys/kern/sched_bsd.c
sys/sys/proc.h
sys/sys/resourcevar.h