diff options
author | Darren Hart <[email protected]> | 2010-11-08 13:40:28 -0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2010-11-10 15:01:34 +0100 |
commit | 5bdb05f91b27b9361c4f348a4e05999f597df72e (patch) | |
tree | 23d68ff7cdd469a6138b95aff37e6990b395eae9 /tools/perf/util/trace-event-scripting.c | |
parent | b41277dc7a18ee332d9e8078e978bacdf6e76157 (diff) |
futex: Add futex_q static initializer
The futex_q struct has grown considerably over the last couple years. I
believe it now merits a static initializer to avoid uninitialized data
errors (having spent more time than I care to admit debugging an uninitialized
q.bitset in an experimental new op code).
With the key initializer built in, several of the FUTEX_KEY_INIT calls can
be removed.
V2: use a static variable instead of an init macro.
use a C99 initializer and don't rely on variable ordering in the struct.
V3: make futex_q_init const
Signed-off-by: Darren Hart <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: John Kacur <[email protected]>
Cc: Ingo Molnar <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions