diff options
author | Borislav Petkov <bp@suse.de> | 2014-04-25 21:31:02 +0200 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-05-01 21:22:39 +0200 |
commit | d944c4eebcf4c0d5e5d9728fec110cbf0047ad7f (patch) | |
tree | 94240760600b3b1de6b6c95fe76b68a6990b2669 /tools/perf/util/include/linux/bitmap.h | |
parent | 5ac3e4b6d1d8fb911bb9c497126c51b02033a412 (diff) | |
download | op-kernel-dev-d944c4eebcf4c0d5e5d9728fec110cbf0047ad7f.zip op-kernel-dev-d944c4eebcf4c0d5e5d9728fec110cbf0047ad7f.tar.gz |
tools: Consolidate types.h
Combine all definitions into a common tools/include/linux/types.h and
kill the wild growth elsewhere. Move DECLARE_BITMAP to its proper
bitmap.h header.
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Link: http://lkml.kernel.org/n/tip-azczs7qcv6h9xek9od10hiv2@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/util/include/linux/bitmap.h')
-rw-r--r-- | tools/perf/util/include/linux/bitmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/include/linux/bitmap.h b/tools/perf/util/include/linux/bitmap.h index bb162e4..01ffd12 100644 --- a/tools/perf/util/include/linux/bitmap.h +++ b/tools/perf/util/include/linux/bitmap.h @@ -4,6 +4,9 @@ #include <string.h> #include <linux/bitops.h> +#define DECLARE_BITMAP(name,bits) \ + unsigned long name[BITS_TO_LONGS(bits)] + int __bitmap_weight(const unsigned long *bitmap, int bits); void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1, const unsigned long *bitmap2, int bits); |