Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc use kpreempt_disable() rather than ...
details: https://anonhg.NetBSD.org/src/rev/94400311e818
branches: trunk
changeset: 351979:94400311e818
user: chs <chs%NetBSD.org@localhost>
date: Thu Mar 09 00:14:03 2017 +0000
description:
use kpreempt_disable() rather than splsoftclock() to disable preemption.
diffstat:
sys/arch/powerpc/powerpc/fpu.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 124ae92fb230 -r 94400311e818 sys/arch/powerpc/powerpc/fpu.c
--- a/sys/arch/powerpc/powerpc/fpu.c Wed Mar 08 22:55:20 2017 +0000
+++ b/sys/arch/powerpc/powerpc/fpu.c Thu Mar 09 00:14:03 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu.c,v 1.36 2015/07/06 01:55:50 matt Exp $ */
+/* $NetBSD: fpu.c,v 1.37 2017/03/09 00:14:03 chs Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.36 2015/07/06 01:55:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.37 2017/03/09 00:14:03 chs Exp $");
#include "opt_multiprocessor.h"
@@ -139,9 +139,10 @@
uint32_t fpscr, ofpscr;
int code;
- int s = splsoftclock(); /* disable preemption */
+ kpreempt_disable();
struct cpu_info * const ci = curcpu();
+
/*
* If we got preempted, we may be running on a different CPU. So we
* need to check for that.
@@ -180,7 +181,7 @@
((uint32_t *)&pcb->pcb_fpu.fpscr)[_QUAD_LOWWORD] &= ~MASKBITS;
}
- splx(s); /* allow preemption */
+ kpreempt_enable();
/*
* Now determine the fault type. First we test to see if any of sticky
Home |
Main Index |
Thread Index |
Old Index