linux-stable/tools/include/linux
Arnaldo Carvalho de Melo fa37c025c5 tools: Adopt rounddown_pow_of_two and deps
Will be used to make sure we pass a power of two when automatically
setting up the perf_mmap addr range length, as the kernel code
validating input on /proc/sys/kernel/perf_event_mlock_kb accepts any
integer, if we plain use it to set up the mmap lenght, we may get an
EINVAL when passing a non power of two.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-zflvep0q01dmkruf4o291l4p@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2014-12-17 11:58:13 -03:00
..
bitops.h tools: Adopt fls_long and deps 2014-12-17 11:58:08 -03:00
compiler.h perf tools: Move ACCESS_ONCE from perf.h header 2014-05-05 17:49:07 +02:00
export.h tools: Unify export.h 2014-05-01 21:18:17 +02:00
hash.h perf tools: Move hash.h header 2014-02-18 09:34:49 -03:00
log2.h tools: Adopt rounddown_pow_of_two and deps 2014-12-17 11:58:13 -03:00
types.h tools: Consolidate types.h 2014-05-01 21:22:39 +02:00