]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Mar 2013 22:59:15 +0000 (15:59 -0700)
commit56c8001211f2360a38d83df7de71da3c9c750b86
tree5fa3c8d83fb28edbf0dce0633460f999eae1f9ba
parent2cffa37353d883aaef121fab0dfca7de0aebfda7
perf,x86: fix link failure for non-Intel configs

Commit 596747e930f2 ("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>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/perf_event.h