misc: tegra-profiler: use power-of-2 sized buffer
authorIgor Nabirushkin <inabirushkin@nvidia.com>
Mon, 6 Mar 2017 10:00:20 +0000 (14:00 +0400)
committerIgor Nabirushkin <inabirushkin@nvidia.com>
Tue, 8 Aug 2017 14:21:46 +0000 (17:21 +0300)
commit7dbe2bd758557712868dc418cdaedb3ec4a40dd3
treed1026a4bb1693e5978d436801fd5de036a58ef2e
parent37e99a069411e7194c4a7aed7f1300ff56dcddb3
misc: tegra-profiler: use power-of-2 sized buffer

Kernel/User-space circle buffers:
- Use power-of-2 sized buffers to reduce overhead
- Use the common circular buffer macros

Bug 1881997

Change-Id: I664f4745e625cc4cd395d1683eada191abe12624
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/1315654
(cherry picked from commit a7971b07d3f04fe424a3506ae665214e76abecb4)
drivers/misc/tegra-profiler/comm.c
include/linux/tegra_profiler.h