From c69f7f3b5cdc6cf9367507478578dc5c875c2b74 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 1 Nov 2019 18:54:15 +0100 Subject: sched: cause ast on master processor too Nowadays' processors are way fast enough to handle everything fine. * kern/sched_prim.c (thread_setrun): Do not check against target processor being master. --- kern/sched_prim.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'kern') diff --git a/kern/sched_prim.c b/kern/sched_prim.c index 96fabf59..63a0437c 100644 --- a/kern/sched_prim.c +++ b/kern/sched_prim.c @@ -1330,17 +1330,12 @@ void thread_setrun( /* * Cause ast on processor if processor is on line. - * - * XXX Don't do this remotely to master because this will - * XXX send an interprocessor interrupt, and that's too - * XXX expensive for all the unparallelized U*x code. */ if (processor == current_processor()) { ast_on(cpu_number(), AST_BLOCK); } - else if ((processor != master_processor) && - (processor->state != PROCESSOR_OFF_LINE)) { - cause_ast_check(processor); + else if ((processor->state != PROCESSOR_OFF_LINE)) { + cause_ast_check(processor); } } #else /* NCPUS > 1 */ -- cgit v1.2.3