Re: [IA64] Reduce __clear_bit_unlock overhead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 19 Oct 2007, Zoltan Menyhart wrote:

> You may want to avoid assembly magics:
> 
> static __inline__ void
> __clear_bit_unlock(int const nr, volatile void * const addr)
> {
>        volatile __u32 * const m = (volatile __u32 *) addr + (nr >> 5);
> 
>        *m &= ~(1 << (nr & 0x1f));
> }
> 
> GCC compiles volatile loads with ".acq" and stores with ".rel".

But gcc does not generate the .nta type of store.

> Cannot we have some "speaking names"? E.g.: bit_unlock_Natomic_rel()

The convention is that __xxx is the non atomic variant.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux