Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759611Ab1D0RAZ (ORCPT ); Wed, 27 Apr 2011 13:00:25 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:57034 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759595Ab1D0RAV (ORCPT ); Wed, 27 Apr 2011 13:00:21 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=Wtx3e+LgI79bM53sDrnWGtU1+w7gvTrdSseEIXP1O9leTu1qNWIeTRQc4Synt7Ugz6 yF88O6M6qTRQ353K18+/YFRM9n4Ta1HDBont9OtiKHUJc9DqWOvfxDgafOFg5P/y0Ay5 AFPyNeDESDbnmSC55vqEA5be9L16HzWyLjbP8= From: Frederic Weisbecker To: LKML Cc: LKML , Frederic Weisbecker , Ingo Molnar , Peter Zijlstra , Will Deacon , Prasad , Paul Mundt Subject: [PATCH 5/6] hw_breakpoints: Only force perf events if breakpoints are selected Date: Wed, 27 Apr 2011 19:00:01 +0200 Message-Id: <1303923602-2923-6-git-send-email-fweisbec@gmail.com> X-Mailer: git-send-email 1.7.3.2 In-Reply-To: <1303923602-2923-1-git-send-email-fweisbec@gmail.com> References: <1303923602-2923-1-git-send-email-fweisbec@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1868 Lines: 62 Previously, arch were forced to always build perf events if they supported hw_breakpoints. Now that the user can choose not to build hw_breakpoints, let only force perf events if hw_breakpoints are selected. Signed-off-by: Frederic Weisbecker Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Will Deacon Cc: Prasad Cc: Paul Mundt --- arch/sh/Kconfig | 1 - arch/x86/Kconfig | 1 - init/Kconfig | 1 + 3 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 0d4d124..d59e6c2 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -46,7 +46,6 @@ config SUPERH32 select HAVE_HW_BREAKPOINT select HW_BREAKPOINT select HAVE_MIXED_BREAKPOINTS_REGS - select PERF_EVENTS select ARCH_HIBERNATION_POSSIBLE if MMU select SPARSE_IRQ diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index fb28dd9..5317f42 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -55,7 +55,6 @@ config X86 select HAVE_KERNEL_LZO select HAVE_HW_BREAKPOINT select HAVE_MIXED_BREAKPOINTS_REGS - select PERF_EVENTS select HAVE_PERF_EVENTS_NMI select ANON_INODES select HAVE_ARCH_KMEMCHECK diff --git a/init/Kconfig b/init/Kconfig index 51f587f..797c98c 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -927,6 +927,7 @@ menuconfig EXPERT config HW_BREAKPOINT bool "Hardware breakpoints" if EXPERT depends on HAVE_HW_BREAKPOINT + select PERF_EVENTS default y help Hardware breakpoints are a feature implemented by most CPUs -- 1.7.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/