diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-02-21 13:28:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-21 21:16:15 +0300 |
commit | 3eb2d9982288fbbbdc671af0fee4b9eb71d11b75 (patch) | |
tree | a25cab6370ac7aeb548f6ae8a10fdbaf55756cae /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7ef7e1d949cd517d30a3cc6c7f48bd017d81af6b (diff) | |
download | linux-3eb2d9982288fbbbdc671af0fee4b9eb71d11b75.tar.xz |
net: mvpp2: simplify mvpp2_bm_bufs_add()
The mvpp2_bm_bufs_add() currently creates a fake cookie by calling
mvpp2_bm_cookie_pool_set(), just to be able to call
mvpp2_pool_refill(). But all what mvpp2_pool_refill() does is extract
the pool ID from the cookie, and call mvpp2_bm_pool_put() with this ID.
Instead of doing this convoluted thing, just call mvpp2_bm_pool_put()
directly, since we have the BM pool ID.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions