perf tools: Use for_each_set_bit() to iterate over feature flags
authorRobert Richter <robert.richter@amd.com>
Wed, 7 Dec 2011 09:02:57 +0000 (10:02 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Dec 2011 19:03:36 +0000 (17:03 -0200)
commitb1e5a9bee3c342dd3281aef76d1be1044dd8addf
tree2e82e69f1f4d2ac04cb5d71f16bdbf254edd6b0c
parente20960c0271f91aead94746872fd976326a703b3
perf tools: Use for_each_set_bit() to iterate over feature flags

This patch introduces the for_each_set_bit() macro and modifies feature
implementation to use it.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1323248577-11268-8-git-send-email-robert.richter@amd.com
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c
tools/perf/util/header.h
tools/perf/util/include/linux/bitops.h