Module Name: src Committed By: riastradh Date: Sun Dec 22 23:18:18 UTC 2024
Modified Files: src/sys/kern: kern_time.c Log Message: kern_time.c: Sort includes. Add missing includes. No functional change intended. Preparation for factoring out arithmetic to add tests for and fix: PR kern/58922: itimer(9): arithmetic overflow PR kern/58925: itimer(9) responds erratically to clock wound back PR kern/58926: itimer(9) integer overflow in overrun counting PR kern/58927: itimer(9): overrun accounting is broken To generate a diff of this commit: cvs rdiff -u -r1.224 -r1.225 src/sys/kern/kern_time.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_time.c diff -u src/sys/kern/kern_time.c:1.224 src/sys/kern/kern_time.c:1.225 --- src/sys/kern/kern_time.c:1.224 Sun Dec 22 23:16:26 2024 +++ src/sys/kern/kern_time.c Sun Dec 22 23:18:18 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_time.c,v 1.224 2024/12/22 23:16:26 riastradh Exp $ */ +/* $NetBSD: kern_time.c,v 1.225 2024/12/22 23:18:18 riastradh Exp $ */ /*- * Copyright (c) 2000, 2004, 2005, 2007, 2008, 2009, 2020 @@ -62,23 +62,35 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.224 2024/12/22 23:16:26 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.225 2024/12/22 23:18:18 riastradh Exp $"); #include <sys/param.h> -#include <sys/resourcevar.h> +#include <sys/types.h> + +#include <sys/callout.h> +#include <sys/cpu.h> +#include <sys/errno.h> +#include <sys/intr.h> +#include <sys/kauth.h> #include <sys/kernel.h> -#include <sys/systm.h> +#include <sys/kmem.h> +#include <sys/lwp.h> +#include <sys/mount.h> +#include <sys/mutex.h> #include <sys/proc.h> -#include <sys/vnode.h> +#include <sys/queue.h> +#include <sys/resourcevar.h> +#include <sys/signal.h> #include <sys/signalvar.h> +#include <sys/syscallargs.h> #include <sys/syslog.h> +#include <sys/systm.h> #include <sys/timetc.h> #include <sys/timevar.h> #include <sys/timex.h> -#include <sys/kauth.h> -#include <sys/mount.h> -#include <sys/syscallargs.h> -#include <sys/cpu.h> +#include <sys/vnode.h> + +#include <machine/limits.h> kmutex_t itimer_mutex __cacheline_aligned; /* XXX static */ static struct itlist itimer_realtime_changed_notify;