mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC local_t removal V2 0/3] Remove local_t
@ 2010-01-07 22:35 Christoph Lameter
  2010-01-07 22:35 ` [RFC local_t removal V2 1/3] Remove unused local.h functions Christoph Lameter
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Christoph Lameter @ 2010-01-07 22:35 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: Tejun Heo, Mike Frysinger, Arnd Bergmann, linux-kernel

Current -next has only the trace subsystem left as a user of local_t

Tracing uses local_t for per cpu safe atomic operations in the form
of cmpxchg and additions.

This patchset removes unused function in local.h and then genericizes
local.h by removing local_t. This results in a very small set of
functions.

"long" is used for now instead of local_t. With some additional work it
would be possible to pass arbitrary types to local_xx() function like
cmpxchg_local() and the this_cpu_xx() functions. Maybe a more flexible
way of handling local_xx() would allow the use of these functions in
other kernel subsystems.

Still RFC state. Lots of stuff todo. Compiles on my box.

V1->V2
 - Preserve local.h
 - Add a rationale why the remaining functions are useful and how
   they differ from this_cpu_xx.



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

end of thread, other threads:[~2010-01-08  8:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-07 22:35 [RFC local_t removal V2 0/3] Remove local_t Christoph Lameter
2010-01-07 22:35 ` [RFC local_t removal V2 1/3] Remove unused local.h functions Christoph Lameter
2010-01-07 22:35 ` [RFC local_t removal V2 2/3] Remove local_t type from tree Christoph Lameter
2010-01-08  8:55   ` Arnd Bergmann
2010-01-07 22:35 ` [RFC local_t removal V2 3/3] Eliminate local_cmpxchg Christoph Lameter

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

Powered by JetHome