aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHannes Frederic Sowa <[email protected]>2015-10-08 01:20:36 +0200
committerDavid S. Miller <[email protected]>2015-10-08 05:26:36 -0700
commitc90aeb948222a7b3d3391d232ec4f50fd8322ad3 (patch)
treec4625885c7705076fb157b6394fa3969b44bd9f3 /tools/perf/scripts/python/bin
parent46234253b9363894a254844a6550b4cc5f3edfe8 (diff)
once: make helper generic for calling functions once
Make the get_random_once() helper generic enough, so that functions in general would only be called once, where one user of this is then net_get_random_once(). The only implementation specific call is to get_random_bytes(), all the rest of this *_once() facility would be duplicated among different subsystems otherwise. The new DO_ONCE() helper will be used by prandom() later on, but might also be useful for other scenarios/subsystems as well where a one-time initialization in often-called, possibly fast path code could occur. Signed-off-by: Hannes Frederic Sowa <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions