]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf,x86: fix link failure for non-Intel configs
authorDavid Rientjes <rientjes@google.com>
Sun, 17 Mar 2013 22:49:10 +0000 (15:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 19:58:53 +0000 (12:58 -0700)
commit68e0bbe8b7781877de7dc96d620a4ce6af8807f9
tree05c2915cbe223c09e1a9a8832267b793f2e19131
parentfe204aa40cedb6c34c5865be223da8f77d6a1545
perf,x86: fix link failure for non-Intel configs

commit 6c4d3bc99b3341067775efd4d9d13cc8e655fd7c upstream.

Commit 1d9d8639c063 ("perf,x86: fix kernel crash with PEBS/BTS after
suspend/resume") introduces a link failure since
perf_restore_debug_store() is only defined for CONFIG_CPU_SUP_INTEL:

arch/x86/power/built-in.o: In function `restore_processor_state':
(.text+0x45c): undefined reference to `perf_restore_debug_store'

Fix it by defining the dummy function appropriately.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/perf_event.h