| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: kern_tc.c,v 1.74 2023/07/27 01:48:49 riastradh Exp $ */ | | 1 | /* $NetBSD: kern_tc.c,v 1.75 2023/07/28 10:37:28 riastradh Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Andrew Doran. | | 8 | * by Andrew Doran. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -28,29 +28,33 @@ | | | @@ -28,29 +28,33 @@ |
28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
29 | * POSSIBILITY OF SUCH DAMAGE. | | 29 | * POSSIBILITY OF SUCH DAMAGE. |
30 | */ | | 30 | */ |
31 | | | 31 | |
32 | /*- | | 32 | /*- |
33 | * ---------------------------------------------------------------------------- | | 33 | * ---------------------------------------------------------------------------- |
34 | * "THE BEER-WARE LICENSE" (Revision 42): | | 34 | * "THE BEER-WARE LICENSE" (Revision 42): |
35 | * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you | | 35 | * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you |
36 | * can do whatever you want with this stuff. If we meet some day, and you think | | 36 | * can do whatever you want with this stuff. If we meet some day, and you think |
37 | * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp | | 37 | * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp |
38 | * --------------------------------------------------------------------------- | | 38 | * --------------------------------------------------------------------------- |
39 | */ | | 39 | */ |
40 | | | 40 | |
| | | 41 | /* |
| | | 42 | * https://papers.freebsd.org/2002/phk-timecounters.files/timecounter.pdf |
| | | 43 | */ |
| | | 44 | |
41 | #include <sys/cdefs.h> | | 45 | #include <sys/cdefs.h> |
42 | /* __FBSDID("$FreeBSD: src/sys/kern/kern_tc.c,v 1.166 2005/09/19 22:16:31 andre Exp $"); */ | | 46 | /* __FBSDID("$FreeBSD: src/sys/kern/kern_tc.c,v 1.166 2005/09/19 22:16:31 andre Exp $"); */ |
43 | __KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.74 2023/07/27 01:48:49 riastradh Exp $"); | | 47 | __KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.75 2023/07/28 10:37:28 riastradh Exp $"); |
44 | | | 48 | |
45 | #ifdef _KERNEL_OPT | | 49 | #ifdef _KERNEL_OPT |
46 | #include "opt_ntp.h" | | 50 | #include "opt_ntp.h" |
47 | #endif | | 51 | #endif |
48 | | | 52 | |
49 | #include <sys/param.h> | | 53 | #include <sys/param.h> |
50 | | | 54 | |
51 | #include <sys/atomic.h> | | 55 | #include <sys/atomic.h> |
52 | #include <sys/evcnt.h> | | 56 | #include <sys/evcnt.h> |
53 | #include <sys/kauth.h> | | 57 | #include <sys/kauth.h> |
54 | #include <sys/kernel.h> | | 58 | #include <sys/kernel.h> |
55 | #include <sys/lock.h> | | 59 | #include <sys/lock.h> |
56 | #include <sys/mutex.h> | | 60 | #include <sys/mutex.h> |