summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2014-12-16 12:14:11 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-12-17 11:58:13 -0300
commitfa37c025c5bec6704dad714365a7f62d9cb13a36 (patch)
treedad2b099ef1c4a3c7e52978f35cdf22bb5833f90 /kernel
parentafcd4f6235659c611f0e62236f6a7bc0ae08af1e (diff)
downloadop-kernel-dev-fa37c025c5bec6704dad714365a7f62d9cb13a36.zip
op-kernel-dev-fa37c025c5bec6704dad714365a7f62d9cb13a36.tar.gz
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud