Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use cpu_index(). NFC.
details: https://anonhg.NetBSD.org/src/rev/359fbf3bea65
branches: trunk
changeset: 994889:359fbf3bea65
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Nov 26 17:18:01 2018 +0000
description:
Use cpu_index(). NFC.
diffstat:
sys/kern/kern_lwp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b2116eecf0d3 -r 359fbf3bea65 sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Mon Nov 26 15:02:11 2018 +0000
+++ b/sys/kern/kern_lwp.c Mon Nov 26 17:18:01 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.194 2018/07/04 18:15:27 kamil Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.195 2018/11/26 17:18:01 skrll Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -211,7 +211,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.194 2018/07/04 18:15:27 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.195 2018/11/26 17:18:01 skrll Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -1856,7 +1856,7 @@
mutex_exit(&lp->lp_lock);
KPREEMPT_DISABLE(l);
- l->l_lwpctl->lc_curcpu = (int)curcpu()->ci_data.cpu_index;
+ l->l_lwpctl->lc_curcpu = (int)cpu_index(curcpu());
KPREEMPT_ENABLE(l);
return 0;
Home |
Main Index |
Thread Index |
Old Index