hw-breakpoints: Include only linux/perf_event.h from kernel part of bp headers
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 23 Nov 2009 14:42:32 +0000 (15:42 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 23 Nov 2009 17:18:30 +0000 (18:18 +0100)
As userspace only needs the breakpoints enum types from the
breakpoints headers.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Prasad <prasad@linux.vnet.ibm.com>
LKML-Reference: <1258987355-8751-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/hw_breakpoint.h

index 4659e0c55ea638737d76109327fc4a6b5eb8e40a..76a48ab9a81e2b6ceffeed33ce8db9591111c997 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef _LINUX_HW_BREAKPOINT_H
 #define _LINUX_HW_BREAKPOINT_H
 
-#include <linux/perf_event.h>
-
 enum {
        HW_BREAKPOINT_LEN_1 = 1,
        HW_BREAKPOINT_LEN_2 = 2,
@@ -19,6 +17,8 @@ enum {
 #ifdef __KERNEL__
 #ifdef CONFIG_HAVE_HW_BREAKPOINT
 
+#include <linux/perf_event.h>
+
 static inline unsigned long hw_breakpoint_addr(struct perf_event *bp)
 {
        return bp->attr.bp_addr;