From f71edfdce760907b1896f742757a693ead0a7467 Mon Sep 17 00:00:00 2001 From: Visa Hankala Date: Sun, 5 May 2019 13:28:15 +0000 Subject: Turn need_resched() and signotify() into proper functions on mips64. --- sys/arch/mips64/include/cpu.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'sys/arch/mips64/include') 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) -- cgit v1.2.3