local_t: Remove cpu_local_xx macros
These macros have not been used for awhile now. Signed-off-by: Christoph Lameter <cl@linux-foundation.org> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:

committed by
Tejun Heo

parent
32032df6c2
commit
38b7827fcd
@@ -338,29 +338,4 @@ static inline void local_set_mask(unsigned long mask, local_t *addr)
|
||||
* a variable, not an address.
|
||||
*/
|
||||
|
||||
/* Need to disable preemption for the cpu local counters otherwise we could
|
||||
still access a variable of a previous CPU in a non local way. */
|
||||
#define cpu_local_wrap_v(l) \
|
||||
({ local_t res__; \
|
||||
preempt_disable(); \
|
||||
res__ = (l); \
|
||||
preempt_enable(); \
|
||||
res__; })
|
||||
#define cpu_local_wrap(l) \
|
||||
({ preempt_disable(); \
|
||||
l; \
|
||||
preempt_enable(); }) \
|
||||
|
||||
#define cpu_local_read(l) cpu_local_wrap_v(local_read(&__get_cpu_var(l)))
|
||||
#define cpu_local_set(l, i) cpu_local_wrap(local_set(&__get_cpu_var(l), (i)))
|
||||
#define cpu_local_inc(l) cpu_local_wrap(local_inc(&__get_cpu_var(l)))
|
||||
#define cpu_local_dec(l) cpu_local_wrap(local_dec(&__get_cpu_var(l)))
|
||||
#define cpu_local_add(i, l) cpu_local_wrap(local_add((i), &__get_cpu_var(l)))
|
||||
#define cpu_local_sub(i, l) cpu_local_wrap(local_sub((i), &__get_cpu_var(l)))
|
||||
|
||||
#define __cpu_local_inc(l) cpu_local_inc(l)
|
||||
#define __cpu_local_dec(l) cpu_local_dec(l)
|
||||
#define __cpu_local_add(i, l) cpu_local_add((i), (l))
|
||||
#define __cpu_local_sub(i, l) cpu_local_sub((i), (l))
|
||||
|
||||
#endif /* __M32R_LOCAL_H */
|
||||
|
Reference in New Issue
Block a user