Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

percpu: remove __get_cpu_var and __raw_get_cpu_var macros

No user is left in the kernel source tree. Therefore we can drop the
definitions.

This is the final merge of the transition away from __get_cpu_var. After
this patch the kernel will not build if anyone uses __get_cpu_var.

Signed-off-by: Christoph Lameter <cl@linux.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Christoph Lameter and committed by
Linus Torvalds
6c51ec4d 37d469e7

-2
-2
include/linux/percpu-defs.h
··· 254 254 #endif /* CONFIG_SMP */ 255 255 256 256 #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu)) 257 - #define __raw_get_cpu_var(var) (*raw_cpu_ptr(&(var))) 258 - #define __get_cpu_var(var) (*this_cpu_ptr(&(var))) 259 257 260 258 /* 261 259 * Must be an lvalue. Since @var must be a simple identifier,