From: Marc Zyngier Date: Thu, 22 Nov 2012 12:05:55 +0000 (+0100) Subject: ARM: 7584/1: perf: fix link error when CONFIG_HW_PERF_EVENTS is not selected X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~53^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7cc504bc351e41e871e317ca7f032f4562f34ad;p=pandora-kernel.git ARM: 7584/1: perf: fix link error when CONFIG_HW_PERF_EVENTS is not selected Commit e50c541 (ARM: perf: add guest vs host discrimination) broken the link as perf_instruction_pointer and perf_misc_flags are not defined when CONFIG_HW_PERF_EVENTS is not selected. As it make little sense to try and profile a guest without any HW event, just fallback to the original code when this config option is not selected. Reported-by: Russell King Acked-by: Will Deacon Signed-off-by: Marc Zyngier Signed-off-by: Russell King --- Reading git-diff-tree failed