sched: check for SD_SERIALIZE atomically in rebalance_domains()
authorDmitry Adamushko <dmitry.adamushko@gmail.com>
Mon, 12 May 2008 19:21:15 +0000 (21:21 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 6 Jun 2008 13:19:30 +0000 (15:19 +0200)
commitd07355f5def74d060333563b36ab51b89fd44cdd
treee39af1fccaaa98b7ae4cc80628e8a8b69f73ebc1
parent6d299f1b53b84e2665f402d9bcc494800aba6386
sched: check for SD_SERIALIZE atomically in rebalance_domains()

Nothing really serious here, mainly just a matter of nit-picking :-/

From: Dmitry Adamushko <dmitry.adamushko@gmail.com>
For CONFIG_SCHED_DEBUG && CONFIG_SYSCT configs, sd->flags can be altered
while being manipulated in rebalance_domains(). Let's do an atomic check.
We rely here on the atomicity of read/write accesses for aligned words.

Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/sched.c