diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2019-05-05 13:28:15 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2019-05-05 13:28:15 +0000 |
commit | f71edfdce760907b1896f742757a693ead0a7467 (patch) | |
tree | 74a17496fed5bf1f857792cbfbdc962319a1bf17 /sys/arch/mips64/include | |
parent | 6bce3e5871b2c5cd67f8fded1adce9a65d466bc5 (diff) |
Turn need_resched() and signotify() into proper functions on mips64.
Diffstat (limited to 'sys/arch/mips64/include')
-rw-r--r-- | sys/arch/mips64/include/cpu.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h index 7bb5cf35971..06c539d3f93 100644 --- a/sys/arch/mips64/include/cpu.h +++ b/sys/arch/mips64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.126 2018/12/05 10:28:21 jsg Exp $ */ +/* $OpenBSD: cpu.h,v 1.127 2019/05/05 13:28:14 visa Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -300,12 +300,7 @@ void cp0_calibrate(struct cpu_info *); * Preempt the current process if in interrupt from user mode, * or after the current trap/syscall if in system mode. */ -#define need_resched(ci) \ - do { \ - (ci)->ci_want_resched = 1; \ - if ((ci)->ci_curproc != NULL) \ - aston((ci)->ci_curproc); \ - } while(0) +void need_resched(struct cpu_info *); #define clear_resched(ci) (ci)->ci_want_resched = 0 /* @@ -319,11 +314,7 @@ void cp0_calibrate(struct cpu_info *); * Notify the current process (p) that it has a signal pending, * process as soon as possible. */ -#ifdef MULTIPROCESSOR -#define signotify(p) (aston(p), cpu_unidle((p)->p_cpu)) -#else -#define signotify(p) aston(p) -#endif +void signotify(struct proc *); #define aston(p) ((p)->p_md.md_astpending = 1) |