Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Grant Grundler
Date: Monday, August 27, 2007 - 2:04 pm

On Sun, Aug 12, 2007 at 10:54:49AM -0400, Mathieu Desnoyers wrote:

Mathieu,
thanks for adding __cmpxchg_local to parisc.... but why do we need it?

By definition, atomic operators are, well, atomic.

I searched for __cmpxchg_local and found this reference:
    http://www.ussg.iu.edu/hypermail/linux/kernel/0612.2/1337.html

but the "root" of that thread (Dec 20, 2006):
    http://www.ussg.iu.edu/hypermail/linux/kernel/0612.2/1334.html

Doesn't explain the difference between "local" and "non-local" either.
Per CPU data should only need memory barriers (in some cases) and
protection against interrupts (in probably more cases). So I'm not
understanding why a new set of APIs is needed.

Can you add a description to Documentation/atomic_ops.txt ?
*sigh* sorry for being "late to the party" on this one...

cheers,
grant

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 15/23] Add cmpxchg_local to parisc, Mathieu Desnoyers, (Sun Aug 12, 7:54 am)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Grant Grundler, (Mon Aug 27, 2:04 pm)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Mathieu Desnoyers, (Mon Aug 27, 2:11 pm)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Grant Grundler, (Mon Aug 27, 11:39 pm)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Mathieu Desnoyers, (Tue Aug 28, 4:50 am)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Grant Grundler, (Tue Aug 28, 10:27 am)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Mathieu Desnoyers, (Tue Aug 28, 11:38 am)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Grant Grundler, (Tue Aug 28, 10:59 pm)
Re: [parisc-linux] [patch 15/23] Add cmpxchg_local to parisc, Mathieu Desnoyers, (Wed Aug 29, 5:08 am)