datapath: Improve robustness of this_cpu_ptr definition in compat layer
authorAndy Zhou <azhou@nicira.com>
Wed, 10 Sep 2014 22:36:06 +0000 (15:36 -0700)
committerAndy Zhou <azhou@nicira.com>
Mon, 15 Sep 2014 07:21:21 +0000 (00:21 -0700)
commit00e01dd48c6eb88dafc8e8bb318baa5ad0b536d7
tree9f3d2e210ef7c39c089d2cabda3f0ae7361d7b17
parent3bacde2a1f5dd3bc4dcb81d1a8daf48fbfcb34c9
datapath: Improve robustness of this_cpu_ptr definition in compat layer

Current autoconfig detection logic for HAVE_PER_CPU_PTR is not robust.
Depends on linux kernel version, the definition can be in either
linux/percpu.h or asm/percpu.h

Turns out it is simpler and safer to handle missing percpu.h
definitions in linux/percpu.h rather than asm/percpu.h. With this
change, there is no need for the autoconfig detection logic above.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
acinclude.m4
datapath/linux/Modules.mk
datapath/linux/compat/include/asm/percpu.h [deleted file]
datapath/linux/compat/include/linux/percpu.h