[PATCH 8/9] ARM: pxa: add iwmmx support for PJ4

Nicolas Pitre nico at fluxnic.net
Wed Nov 10 20:51:51 EST 2010


On Thu, 11 Nov 2010, Eric Miao wrote:

> A run-time check of the core will be quicker, but doesn't look like a clean
> solution.

Runtime checks should be avoided if possible, especially in the task 
switching path.  That would be appropriate, though, in setup code such 
as it is done in xscale_cp0_init().

> A better way to go maybe introducing different function entries
> which call the common iwmmx handling code.

Right.  And in this case it is probably a good idea to clone the content 
of linux/arch/arm/kernel/xscale-cp0.c into a separate file, say 
mvpj4-cp0.c, and adapt it accordingly as the core of it will be 
different anyway.


Nicolas



More information about the linux-arm-kernel mailing list