[PATCH -V10 10/15] powerpc: Prevent gcc to re-read the pagetables
    David Laight 
    David.Laight at ACULAB.COM
       
    Thu Jun  6 01:41:45 EST 2013
    
    
  
>  	ptep = pte_offset_kernel(&pmd, addr);
>  	do {
> -		pte_t pte = *ptep;
> +		pte_t pte = ACCESS_ONCE(*ptep);
Why not just define ptep as a 'pointer to volatile'?
	David
    
    
More information about the Linuxppc-dev
mailing list