Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Consistently use kpreempt_*() outside scheduler path.
details: https://anonhg.NetBSD.org/src/rev/35d589df44fe
branches: trunk
changeset: 334034:35d589df44fe
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Thu Nov 27 15:00:00 2014 +0000
description:
Consistently use kpreempt_*() outside scheduler path.
diffstat:
sys/kern/subr_percpu.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r b4b90e4d13c9 -r 35d589df44fe sys/kern/subr_percpu.c
--- a/sys/kern/subr_percpu.c Thu Nov 27 14:38:09 2014 +0000
+++ b/sys/kern/subr_percpu.c Thu Nov 27 15:00:00 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_percpu.c,v 1.16 2012/01/27 19:48:40 para Exp $ */
+/* $NetBSD: subr_percpu.c,v 1.17 2014/11/27 15:00:00 uebayasi Exp $ */
/*-
* Copyright (c)2007,2008 YAMAMOTO Takashi,
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_percpu.c,v 1.16 2012/01/27 19:48:40 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_percpu.c,v 1.17 2014/11/27 15:00:00 uebayasi Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -291,7 +291,7 @@
percpu_getref(percpu_t *pc)
{
- KPREEMPT_DISABLE(curlwp);
+ kpreempt_disable();
return percpu_getptr_remote(pc, curcpu());
}
@@ -306,7 +306,7 @@
percpu_putref(percpu_t *pc)
{
- KPREEMPT_ENABLE(curlwp);
+ kpreempt_enable();
}
/*
Home |
Main Index |
Thread Index |
Old Index