[Cbe-oss-dev] PATCH [2/7] class 0 and 1 rework

Christoph Hellwig hch at lst.de
Thu Nov 1 21:06:54 EST 2007


On Wed, Oct 31, 2007 at 09:07:13PM -0300, Luke Browning wrote:
> 
> 
> Re-work spu exception handling such that the spu does not have to
> be loaded. This should improve the concurrency of the spu scheduling
> leading to greater spu utilization, when spus are overcommited.
> 
> Signed-off-by: Luke Browning <lukebr at linux.vnet.ibm.com>

This should have an From: Arnd Bergmann <arnd at arndb.de>
as Arnd did the original version or something like that.

> +	/*
> +	 * It should be impossible to preempt a context while an exception
> +	 * is being processed, since the context switch code is specially
> +	 * coded to deal with interrupts ... But, just in case, sanity check
> +	 * the context pointer.  It is OK to return doing nothing since
> +	 * the exception will be regenerated when the context is resumed.
> +	 */

We should probably put an assert in here to ensure a preempt really
doesn't happen during eception handling.




More information about the cbe-oss-dev mailing list