perf tools: Move u64_swap union
authorBorislav Petkov <bp@suse.de>
Mon, 14 Apr 2014 15:38:39 +0000 (17:38 +0200)
committerJiri Olsa <jolsa@kernel.org>
Tue, 29 Apr 2014 13:30:21 +0000 (15:30 +0200)
... to its single user's header, evsel.h.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/tip-9os1chjyz12upubfsjc71d99@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/util/evsel.h
tools/perf/util/types.h

index 0c9926cfb292ba2667de9f270fc8103182d857ab..0c581d0d5eb67e317efdfbf163fda0e2c3bfa5dc 100644 (file)
@@ -91,6 +91,11 @@ struct perf_evsel {
        char                    *group_name;
 };
 
+union u64_swap {
+       u64 val64;
+       u32 val32[2];
+};
+
 #define hists_to_evsel(h) container_of(h, struct perf_evsel, hists)
 
 struct cpu_map;
index c51fa6b70a2854c3befeb82af0bf3307b7e8c6c4..5f3689a3d0857be7431f8ed06eac3eb5e9707e18 100644 (file)
@@ -16,9 +16,4 @@ typedef signed short     s16;
 typedef unsigned char     u8;
 typedef signed char       s8;
 
-union u64_swap {
-       u64 val64;
-       u32 val32[2];
-};
-
 #endif /* __PERF_TYPES_H */