Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/common Don't bother with kernel_lock for kern_reb...
details: https://anonhg.NetBSD.org/src/rev/c4e031d0b4c5
branches: trunk
changeset: 745160:c4e031d0b4c5
user: ad <ad%NetBSD.org@localhost>
date: Sun Feb 23 15:57:09 2020 +0000
description:
Don't bother with kernel_lock for kern_reboot().
diffstat:
sys/compat/common/kern_xxx_12.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 07a3862f57dd -r c4e031d0b4c5 sys/compat/common/kern_xxx_12.c
--- a/sys/compat/common/kern_xxx_12.c Sun Feb 23 15:46:38 2020 +0000
+++ b/sys/compat/common/kern_xxx_12.c Sun Feb 23 15:57:09 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_xxx_12.c,v 1.17 2020/01/01 22:57:17 thorpej Exp $ */
+/* $NetBSD: kern_xxx_12.c,v 1.18 2020/02/23 15:57:09 ad Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_xxx_12.c,v 1.17 2020/01/01 22:57:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_xxx_12.c,v 1.18 2020/02/23 15:57:09 ad Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -68,9 +68,7 @@
if ((error = kauth_authorize_system(l->l_cred,
KAUTH_SYSTEM_REBOOT, 0, NULL, NULL, NULL)) != 0)
return (error);
- KERNEL_LOCK(1, NULL);
kern_reboot(SCARG(uap, opt), NULL);
- KERNEL_UNLOCK_ONE(NULL);
return (0);
}
Home |
Main Index |
Thread Index |
Old Index