aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2010-11-08 13:40:28 -0800
committerThomas Gleixner <tglx@linutronix.de>2010-11-10 15:01:34 +0100
commit5bdb05f91b27b9361c4f348a4e05999f597df72e (patch)
tree23d68ff7cdd469a6138b95aff37e6990b395eae9 /usr
parentfutex: Replace fshared and clockrt with combined flags (diff)
downloadlinux-dev-5bdb05f91b27b9361c4f348a4e05999f597df72e.tar.xz
linux-dev-5bdb05f91b27b9361c4f348a4e05999f597df72e.zip
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 <dvhart@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: John Kacur <jkacur@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> LKML-Reference: <1289252428-18383-1-git-send-email-dvhart@linux.intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions