[PATCH] sparse fixes for cpu feature constants

Nathan Lynch nathanl at austin.ibm.com
Thu Dec 30 16:52:22 EST 2004


Nathan Lynch wrote:

> --- 2.6.10.orig/include/asm-ppc64/mmu_context.h	2004-12-24 21:34:31.000000000 +0000
> +++ 2.6.10/include/asm-ppc64/mmu_context.h	2004-12-30 04:00:42.000000000 +0000
> @@ -52,11 +52,8 @@
>  			     struct task_struct *tsk)
>  {
>  #ifdef CONFIG_ALTIVEC
> -	asm volatile (
> - BEGIN_FTR_SECTION
> -	"dssall;\n"
> - END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
>                                                                -	 : : );
> +	if (cur_cpu_spec->cpu_features & CPU_FTR_ALTIVEC)
> +		asm volatile ("dssall;\n" : : );
>  #endif /* CONFIG_ALTIVEC */

And my mail client mangled the patch... new one attached.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc64-sparse-fixes
Url: http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20041229/18e7b9f3/attachment.txt 


More information about the Linuxppc64-dev mailing list