public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* regarding use of various cmpxchg* API
@ 2014-06-05 22:44 Pranith Kumar
  2014-06-06  7:29 ` Peter Zijlstra
  0 siblings, 1 reply; 4+ messages in thread
From: Pranith Kumar @ 2014-06-05 22:44 UTC (permalink / raw)
  To: peterz, mingo; +Cc: linux-kernel

Hi Peter, Ingo,

I see that in the drivers there are the following types of cmpxchg API:

__cmpxchg64()
atomic_cmpxchg()
atomic64_cmpxchg()
cmpxchg()
atomic_long_cmpxchg()
cmpxchg_local()
local_cmpxchg()(in kernel/events/ring_buffer.c)
this_cpu_cmpxchg()

Since cmpxchg() internally handles the width, do you think it makes sense to replace the above uses of cmpxchg with the document API (cmpxchg, atomic_cmpxchg, cmpxchg_local)?

I am willing to do this and wanted to know if it something you think is worth pursuing.

Regards,
Pranith

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-06 14:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05 22:44 regarding use of various cmpxchg* API Pranith Kumar
2014-06-06  7:29 ` Peter Zijlstra
2014-06-06 14:17   ` Pranith Kumar
2014-06-06 14:30     ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox