Date: Wed, 13 Jul 2011 08:01:59 +0000 From: rudot@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r224175 - soc2011/rudot/kern Message-ID: <20110713080159.1C1DB106566C@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rudot Date: Wed Jul 13 08:01:58 2011 New Revision: 224175 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=224175 Log: use asts instead of preempting Modified: soc2011/rudot/kern/sched_fbfs.c Modified: soc2011/rudot/kern/sched_fbfs.c ============================================================================== --- soc2011/rudot/kern/sched_fbfs.c Wed Jul 13 06:20:00 2011 (r224174) +++ soc2011/rudot/kern/sched_fbfs.c Wed Jul 13 08:01:58 2011 (r224175) @@ -621,7 +621,7 @@ pcpu = pcpu_find(c); if (pcpu->pc_curthread == pcpu->pc_idlethread) { if (PCPU_GET(cpuid) != c) - ipi_cpu(c, IPI_PREEMPT); + ipi_cpu(c, IPI_AST); return (1); } cpri = pcpu->pc_curthread->td_priority; @@ -709,7 +709,7 @@ */ if (preempt_lastcpu(td)) { if (map) - ipi_selected(map, IPI_PREEMPT); + ipi_selected(map, IPI_AST); return; } /* @@ -720,10 +720,10 @@ while ((cg != NULL) && ((map & cg->cg_mask) == 0)) cg = cg->cg_parent; if (map & cg->cg_mask) { - ipi_selected(map & cg->cg_mask, IPI_PREEMPT); + ipi_selected(map & cg->cg_mask, IPI_AST); return; } - ipi_selected(map, IPI_PREEMPT); + ipi_selected(map, IPI_AST); return; } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110713080159.1C1DB106566C>