This commit is contained in:
purplerain 2023-06-27 17:33:20 +00:00
parent 3751effe59
commit 29ec20d7b2
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
33 changed files with 213 additions and 288 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: kern_timeout.c,v 1.90 2022/12/31 16:06:24 cheloha Exp $ */
/* $OpenBSD: kern_timeout.c,v 1.91 2023/06/26 16:26:20 cheloha Exp $ */
/*
* Copyright (c) 2001 Thomas Nordin <nordin@openbsd.org>
* Copyright (c) 2000-2001 Artur Grabowski <art@openbsd.org>
@ -542,13 +542,11 @@ timeout_hardclock_update(void)
{
struct timespec elapsed, now;
struct kclock *kc;
struct timespec *lastscan;
int b, done, first, i, last, level, need_softclock, off;
struct timespec *lastscan = &timeout_kclock[KCLOCK_UPTIME].kc_lastscan;
int b, done, first, i, last, level, need_softclock = 1, off;
nanouptime(&now);
lastscan = &timeout_kclock[KCLOCK_UPTIME].kc_lastscan;
timespecsub(&now, lastscan, &elapsed);
need_softclock = 1;
mtx_enter(&timeout_mutex);