[PATCH] timecounters: Fix timehand generation read/write

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jun 9 08:51:37 UTC 2015



On 03/06/15 16:17, Gedare Bloom wrote:
>> @@ -76,6 +77,16 @@ fls(int x)
>> >  {
>> >          return x ? sizeof(x) * 8 - __builtin_clz(x) : 0;
>> >  }
>> >+static void
> Any good reason none of the functions suggest inline?

In a source file the inline is probably superfluous. I use the inline 
only to get rid of defined but not used warnings.

>
>> >+rmb(void)
>> >+{
>> >+       _Atomic_Fence(ATOMIC_ORDER_ACQUIRE);
>> >+}
>> >+static void
>> >+wmb(void)
>> >+{
>> >+       _Atomic_Fence(ATOMIC_ORDER_RELEASE);
>> >+}

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list