perf bench futex: Simplify wrapper for LOCK_PI
authorDavidlohr Bueso <dave@stgolabs.net>
Thu, 21 Apr 2016 03:14:07 +0000 (20:14 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Apr 2016 23:24:26 +0000 (20:24 -0300)
commit73b1794e252b0476cc6e46461c7612cbaa88be45
treebf1c9f639094225f585ee7563200e980bf907d68
parent8daef508b0a144970e5cbc587525c351663fec63
perf bench futex: Simplify wrapper for LOCK_PI

Given that the 'val' parameter is ignored for FUTEX_LOCK_PI, get rid of
the bogus deadlock detection flag in the wrapper code and avoid the
extra argument, making it resemble its unlock counterpart. And if
nothing else, we already only pass 0 anyway.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Davidlohr Bueso <dbueso@suse.de>
Link: http://lkml.kernel.org/r/1461208447-29328-1-git-send-email-dave@stgolabs.net
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bench/futex-lock-pi.c
tools/perf/bench/futex.h