-/* $OpenBSD: _types.h,v 1.25 2022/12/10 15:02:29 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.26 2023/07/02 19:02:27 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _MACHINE__TYPES_H_
#define _MACHINE__TYPES_H_
-#define __HAVE_CLOCKINTR
-
#if defined(_KERNEL)
typedef struct label_t {
long val[10];
-/* $OpenBSD: _types.h,v 1.18 2022/11/08 17:34:13 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.19 2023/07/02 19:02:27 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _MACHINE__TYPES_H_
#define _MACHINE__TYPES_H_
-#define __HAVE_CLOCKINTR
-
/*
* _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
* value for all data types (int, long, ...). The result is an
-/* $OpenBSD: _types.h,v 1.20 2023/01/17 02:27:14 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.21 2023/07/02 19:02:27 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _ARM__TYPES_H_
#define _ARM__TYPES_H_
-#define __HAVE_CLOCKINTR
-
#if defined(_KERNEL)
typedef struct label_t {
long val[11];
-/* $OpenBSD: _types.h,v 1.5 2022/11/08 17:56:38 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.6 2023/07/02 19:02:27 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
#ifndef _MACHINE__TYPES_H_
#define _MACHINE__TYPES_H_
-#define __HAVE_CLOCKINTR
-
#if defined(_KERNEL)
typedef struct label_t {
long val[13];
-/* $OpenBSD: _types.h,v 1.27 2022/12/06 00:40:09 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.28 2023/07/02 19:02:27 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _MACHINE__TYPES_H_
#define _MACHINE__TYPES_H_
-#define __HAVE_CLOCKINTR
-
#if defined(_KERNEL)
typedef struct label_t {
long val[19];
-/* $OpenBSD: apm.c,v 1.131 2023/06/22 13:18:02 claudio Exp $ */
+/* $OpenBSD: apm.c,v 1.132 2023/07/02 19:02:27 cheloha Exp $ */
/*-
* Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved.
rtcstart(); /* in i8254 mode, rtc is profclock */
inittodr(gettime());
-#ifdef __HAVE_CLOCKINTR
clockintr_cpu_init(NULL);
clockintr_trigger();
-#endif
config_suspend_all(DVACT_RESUME);
cold = 0;
-/* $OpenBSD: _types.h,v 1.24 2022/12/06 01:56:44 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.25 2023/07/02 19:02:27 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _MACHINE__TYPES_H_
#define _MACHINE__TYPES_H_
-#define __HAVE_CLOCKINTR
-
/*
* _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
* value for all data types (int, long, ...). The result is an
-/* $OpenBSD: apm.c,v 1.42 2023/02/10 14:34:16 visa Exp $ */
+/* $OpenBSD: apm.c,v 1.43 2023/07/02 19:02:28 cheloha Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
}
inittodr(gettime()); /* Move the clock forward */
-#ifdef __HAVE_CLOCKINTR
clockintr_cpu_init(NULL);
clockintr_trigger();
-#endif
config_suspend_all(DVACT_RESUME);
-/* $OpenBSD: _types.h,v 1.19 2022/12/06 00:56:52 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.20 2023/07/02 19:02:28 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _M88K__TYPES_H_
#define _M88K__TYPES_H_
-#define __HAVE_CLOCKINTR
-
#if defined(_KERNEL)
typedef struct label_t {
long val[19];
-/* $OpenBSD: _types.h,v 1.24 2022/11/19 16:23:48 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.25 2023/07/02 19:02:28 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _MIPS64__TYPES_H_
#define _MIPS64__TYPES_H_
-#define __HAVE_CLOCKINTR
-
/*
* _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
* value for all data types (int, long, ...). The result is an
-/* $OpenBSD: _types.h,v 1.24 2022/11/29 00:58:05 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.25 2023/07/02 19:02:28 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _POWERPC__TYPES_H_
#define _POWERPC__TYPES_H_
-#define __HAVE_CLOCKINTR
-
#if defined(_KERNEL)
typedef struct label_t {
long val[25];
-/* $OpenBSD: _types.h,v 1.3 2022/11/29 01:04:44 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.4 2023/07/02 19:02:28 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
#ifndef _MACHINE__TYPES_H_
#define _MACHINE__TYPES_H_
-#define __HAVE_CLOCKINTR
-
#if defined(_KERNEL)
typedef struct label_t {
long val[22];
-/* $OpenBSD: _types.h,v 1.4 2022/11/19 16:02:37 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.5 2023/07/02 19:02:28 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _MACHINE__TYPES_H_
#define _MACHINE__TYPES_H_
-#define __HAVE_CLOCKINTR
-
#if defined(_KERNEL)
typedef struct label_t {
long val[14];
-/* $OpenBSD: _types.h,v 1.21 2022/12/06 01:19:35 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.22 2023/07/02 19:02:28 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _SH__TYPES_H_
#define _SH__TYPES_H_
-#define __HAVE_CLOCKINTR
-
#if defined(_KERNEL)
typedef struct label_t {
long val[9];
-/* $OpenBSD: _types.h,v 1.24 2023/01/13 03:22:18 cheloha Exp $ */
+/* $OpenBSD: _types.h,v 1.25 2023/07/02 19:02:28 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifndef _MACHINE__TYPES_H_
#define _MACHINE__TYPES_H_
-#define __HAVE_CLOCKINTR
-
#if defined(_KERNEL)
typedef struct label_t {
long val[2];
-/* $OpenBSD: db_command.c,v 1.98 2023/03/08 04:43:07 guenther Exp $ */
+/* $OpenBSD: db_command.c,v 1.99 2023/07/02 19:02:27 cheloha Exp $ */
/* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */
/*
const struct db_command db_show_all_cmds[] = {
{ "procs", db_show_all_procs, 0, NULL },
{ "callout", db_show_callout, 0, NULL },
-#ifdef __HAVE_CLOCKINTR
{ "clockintr", db_show_all_clockintr, 0, NULL },
-#endif
{ "pools", db_show_all_pools, 0, NULL },
{ "mounts", db_show_all_mounts, 0, NULL },
{ "vnodes", db_show_all_vnodes, 0, NULL },
-/* $OpenBSD: db_interface.h,v 1.25 2022/11/05 19:29:45 cheloha Exp $ */
+/* $OpenBSD: db_interface.h,v 1.26 2023/07/02 19:02:27 cheloha Exp $ */
/* $NetBSD: db_interface.h,v 1.1 1996/02/05 01:57:03 christos Exp $ */
/*
void db_show_all_procs(db_expr_t, int, db_expr_t, char *);
/* kern/kern_clockintr.c */
-#ifdef __HAVE_CLOCKINTR
void db_show_all_clockintr(db_expr_t, int, db_expr_t, char *);
-#endif
/* kern/kern_timeout.c */
void db_show_callout(db_expr_t, int, db_expr_t, char *);
-/* $OpenBSD: kern_clockintr.c,v 1.26 2023/07/02 00:55:18 cheloha Exp $ */
+/* $OpenBSD: kern_clockintr.c,v 1.27 2023/07/02 19:02:27 cheloha Exp $ */
/*
* Copyright (c) 2003 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
#include <sys/sysctl.h>
#include <sys/time.h>
-#ifdef __HAVE_CLOCKINTR
-
/*
* Protection for global variables in this file:
*
}
#endif /* DDB */
-#endif /*__HAVE_CLOCKINTR */
-/* $OpenBSD: kern_sysctl.c,v 1.415 2023/05/21 12:47:54 claudio Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.416 2023/07/02 19:02:27 cheloha Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
case KERN_CPUSTATS:
return (sysctl_cpustats(name, namelen, oldp, oldlenp,
newp, newlen));
-#ifdef __HAVE_CLOCKINTR
case KERN_CLOCKINTR:
return sysctl_clockintr(name, namelen, oldp, oldlenp, newp,
newlen);
-#endif
default:
return (ENOTDIR); /* overloaded */
}
-/* $OpenBSD: subr_suspend.c,v 1.14 2022/11/10 10:37:40 kettenis Exp $ */
+/* $OpenBSD: subr_suspend.c,v 1.15 2023/07/02 19:02:27 cheloha Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
splx(s);
inittodr(gettime());
-#ifdef __HAVE_CLOCKINTR
clockintr_cpu_init(NULL);
clockintr_trigger();
-#endif
+
sleep_resume(v);
resume_randomness(rndbuf, rndbuflen);
#ifdef MULTIPROCESSOR