Date: Wed, 11 Jan 2006 04:44:37 -0800 From: rookie <asmrookie@gmail.com> To: freebsd-hackers@freebsd.org Subject: Re: rescheduling tasks using swi_add() Message-ID: <3bbf2fe10601110444t66b6a8a4j@mail.gmail.com> In-Reply-To: <3bbf2fe10601110439k11ed3b9ds@mail.gmail.com> References: <20060111121304.62832.qmail@web30013.mail.mud.yahoo.com> <3bbf2fe10601110439k11ed3b9ds@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2006/1/11, kamal kc <kamal_ckk@yahoo.com>: > > dear everybody, > > i had previous thread going on about the cpu load > average. and had some discussion regarding it. i have > a newer thing to discuss on so i started this thread. > > as i mentioned earlier i had put some code in the > bridge.c > that performed compression which took a long time and > hence > i got a high number of interface interrupts (irq22: xl > interrupts). > > so i thought of rescheduling the compression tasks > without > blocking the bridge function. i found this function > swi_add() [snip] swi_* are used to rule interrupt threads but as you're speaking it doesn't seem you're in this case. In order to force a preemption you might use mi_switch(9) which causes a machine-independent context switch for curthread. cheers, Attilio -- Peace can only be achieved by understanding - A. Einstein
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3bbf2fe10601110444t66b6a8a4j>