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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 27 Mar 2013 02:40:55 +0000 (02:40 +0000)
commit9deb93cfc455f4b825edf096a06d82c78b67ea3b
tree6dbaa5315184f12c9f4586ff56c58f96083e145d
parent6e52499ecb74510ad00dcf15343c329052646509
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: Ben Hutchings <ben@decadent.org.uk>
include/linux/perf_event.h