aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorManfred Spraul <[email protected]>2014-06-06 14:37:48 -0700
committerLinus Torvalds <[email protected]>2014-06-06 16:08:15 -0700
commit2f2ed41dcaec34f2d6f224aa84efcc5a9dd8d5c3 (patch)
tree4122b855351d0747a49e47c4d675f0f83df7eafa /tools/perf/scripts/python
parent1994862dc9c16f360a9169a4d27200d15ba29713 (diff)
ipc/sem.c: remove code duplication
count_semzcnt and count_semncnt are more of less identical. The patch creates a single function that either counts the number of tasks waiting for zero or waiting due to a decrease operation. Compared to the initial version, the BUG_ONs were removed. Signed-off-by: Manfred Spraul <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Michael Kerrisk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions