summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2019-08-02 07:41:58 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2019-08-02 07:41:58 +0000
commit53c1841d145dd838af77a3ce49b6c373890f171d (patch)
treec98a6a710b086d117a809294f9c940c05652341e
parentbba09d393247b4ea2fcd11e8f5c5710eb1072868 (diff)
Avoid repeated invocation of curcpu().
-rw-r--r--sys/arch/mips64/mips64/sendsig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/sendsig.c b/sys/arch/mips64/mips64/sendsig.c
index 3d9d2f3fd04..55ca6c36637 100644
--- a/sys/arch/mips64/mips64/sendsig.c
+++ b/sys/arch/mips64/mips64/sendsig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sendsig.c,v 1.32 2019/05/06 12:57:56 visa Exp $ */
+/* $OpenBSD: sendsig.c,v 1.33 2019/08/02 07:41:57 visa Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -95,7 +95,7 @@ void
sendsig(sig_t catcher, int sig, sigset_t mask, const siginfo_t *ksip)
{
struct cpu_info *ci = curcpu();
- struct proc *p = curproc;
+ struct proc *p = ci->ci_curproc;
struct sigframe *fp;
struct trapframe *regs;
struct sigacts *psp = p->p_p->ps_sigacts;