diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-08-29 16:19:35 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-08-29 16:19:35 +0000 |
commit | 71d08ef8ba3fb254153d8a31ca6edc5df07e4cb9 (patch) | |
tree | e22799d361ba76a88cd41a71bb51ec557a2ae6f3 /sys/arch/hppa | |
parent | b5663c941d80f5f35e4810d76498dfbd0396f6d4 (diff) |
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@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/dev/cpu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/hppa/dev/cpu.c b/sys/arch/hppa/dev/cpu.c index bc778f69d12..777bbd44587 100644 --- a/sys/arch/hppa/dev/cpu.c +++ b/sys/arch/hppa/dev/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.45 2023/06/15 22:18:07 cheloha Exp $ */ +/* $OpenBSD: cpu.c,v 1.46 2023/08/29 16:19:34 claudio Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -263,6 +263,10 @@ cpu_hatch(void) while (!start_secondary_cpu) ; + s = splhigh(); + nanouptime(&ci->ci_schedstate.spc_runtime); + splx(s); + SCHED_LOCK(s); cpu_switchto(NULL, sched_chooseproc()); } |