__switch_to test-and-branch ALTIVEC specific?

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Sep 18 11:31:39 EST 2005


On Tue, 2005-09-13 at 16:43 -0500, Kumar Gala wrote:
> On Sep 13, 2005, at 3:35 PM, Marcelo Tosatti wrote:
> 
> > On Tue, Sep 13, 2005 at 02:05:57PM -0500, Kumar Gala wrote:
> >
> >> This probably has to due with what happens on a G4 system with a
> >> kernel not build with Altivec.. However, I dont remember exactly what
> >>
> >
> >
> >> behavior is desired.
> >>
> >
> > What would be the appropriate set of definitions to use, then ?
> >
> > #if defined (CONFIG_ALTIVEC || CONFIG_6xx) ?
> 
> That's probably better.  Hopefully Ben will have some reason if what  
> you suggest is not sufficient.

Just #ifdef CONFIG_ALTIVEC is fine

Ben.





More information about the Linuxppc-dev mailing list