percpu: remove per_cpu__ prefix.
Now that the return from alloc_percpu is compatible with the address of per-cpu vars, it makes sense to hand around the address of per-cpu variables. To make this sane, we remove the per_cpu__ prefix we used created to stop people accidentally using these vars directly. Now we have sparse, we can use that (next patch). tj: * Updated to convert stuff which were missed by or added after the original patch. * Kill per_cpu_var() macro. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
#define PERCPU_ENOUGH_ROOM PERCPU_PAGE_SIZE
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
# define THIS_CPU(var) (per_cpu__##var) /* use this to mark accesses to per-CPU variables... */
|
||||
# define THIS_CPU(var) (var) /* use this to mark accesses to per-CPU variables... */
|
||||
#else /* !__ASSEMBLY__ */
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ extern void *per_cpu_init(void);
|
||||
* On the positive side, using __ia64_per_cpu_var() instead of __get_cpu_var() is slightly
|
||||
* more efficient.
|
||||
*/
|
||||
#define __ia64_per_cpu_var(var) per_cpu__##var
|
||||
#define __ia64_per_cpu_var(var) var
|
||||
|
||||
#include <asm-generic/percpu.h>
|
||||
|
||||
|
Reference in New Issue
Block a user