diff options
author | Oleg Nesterov <[email protected]> | 2013-07-08 14:24:19 -0700 |
---|---|---|
committer | Al Viro <[email protected]> | 2013-07-13 13:29:32 +0400 |
commit | e9a17bd73a29e5323c37ec5ffe50fc0e825d3d03 (patch) | |
tree | bae88dcb02c02d93bd2eca8ba3334b2f16a14b9d /tools/perf/scripts/python/netdev-times.py | |
parent | fb4214db50b00558cc6e274c88b3f7325068e942 (diff) |
llist: llist_add() can use llist_add_batch()
llist_add(new, head) can simply use llist_add_batch(new, new, head),
no need to duplicate the code.
This obviously uninlines llist_add() and to me this is a win. But we
can make llist_add_batch() inline if this is desirable, in this case
gcc can notice that new_first == new_last if the caller is llist_add().
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Andrey Vagin <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: David Howells <[email protected]>
Cc: Huang Ying <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions