From: Frederic Weisbecker Date: Sat, 15 May 2010 20:57:48 +0000 (+0200) Subject: lockup_detector: Adapt CONFIG_PERF_EVENT_NMI to other archs X-Git-Tag: v2.6.36-rc1~532^2~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c01d4323309a90a298fd81cf3a059ee1b12be2e9;p=pandora-kernel.git lockup_detector: Adapt CONFIG_PERF_EVENT_NMI to other archs CONFIG_PERF_EVENT_NMI is something that need to be enabled from the arch. This is fine on x86 as PERF_EVENTS is builtin but if other archs select it, they will need to handle the PERF_EVENTS dependency. Instead, handle the dependency in the generic layer: - archs need to tell what they support through HAVE_PERF_EVENTS_NMI - Enable magically PERF_EVENTS_NMI if we have PERF_EVENTS and HAVE_PERF_EVENTS_NMI. Signed-off-by: Frederic Weisbecker Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Don Zickus Cc: Cyrill Gorcunov --- Reading git-diff-tree failed