Arun Sharma
60063497a9
atomic: use <linux/atomic.h>
...
This allows us to move duplicated code in <asm/atomic.h>
(atomic_inc_not_zero() for now) to <linux/atomic.h>
Signed-off-by: Arun Sharma <asharma@fb.com >
Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com >
Cc: Ingo Molnar <mingo@elte.hu >
Cc: David Miller <davem@davemloft.net >
Cc: Eric Dumazet <eric.dumazet@gmail.com >
Acked-by: Mike Frysinger <vapier@gentoo.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2011-07-26 16:49:47 -07:00
Kyle McMartin
70da2d9630
parisc: fix braino in commit adding __space_to_prot
...
Shouldn't commit without building before morning coffee...
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca >
2009-01-05 18:15:25 +00:00
Kyle McMartin
a60715f589
parisc: factor out sid to protid conversion
...
Create a new __space_to_prot inline to convert the space id (mmu context)
to a protection id. Sadly it doesn't look like the #ifdef can be eliminated
since relying on the compiler to not truncate a bit on
return (ctx >> SPACEID_SHIFT) << 1;
seems a little dodgy.
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca >
2009-01-05 18:15:25 +00:00
Kyle McMartin
deae26bf6a
parisc: move include/asm-parisc to arch/parisc/include/asm
2008-10-10 16:32:29 +00:00