]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Netlogic: Fix oprofile compile on XLR uniprocessor
authorJayachandran C <jchandra@broadcom.com>
Mon, 25 Mar 2013 06:51:52 +0000 (06:51 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 May 2013 23:19:05 +0000 (01:19 +0200)
commit0d62f8b699a7e83c557238eb6693bad2f026f376
tree18875c6c9175938db93e45571cb7000ac7cdad42
parent17315b632e63148781a0a0fe7bcad39fc0d1be7d
MIPS: Netlogic: Fix oprofile compile on XLR uniprocessor

The commit 2cab280f24c3c9686e340e6ede38f159b6655bdd [MIPS: oprofile:
Support for XLR/XLS processors] causes a compilation failure when
oprofile is enabled and SMP is not configured.

arch/mips/oprofile/op_model_mipsxx.c: In function 'mipsxx_cpu_setup':
arch/mips/oprofile/op_model_mipsxx.c:181:2: error: implicit declaration of function 'cpu_logical_map'

To fix this, update oprofile_skip_cpu to not call cpu_logical_map when
CONFIG_SMP is not defined.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/5037/
Acked-by: John Crispin <blogic@openwrt.org>
arch/mips/oprofile/op_model_mipsxx.c