Andrew Morton 89f19f04dc sched: Fix raciness in runqueue_is_locked()
runqueue_is_locked() is unavoidably racy due to a poor interface design.
It does

	cpu = get_cpu()
	ret = some_perpcu_thing(cpu);
	put_cpu(cpu);
	return ret;

Its return value is unreliable.

Fix.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <200909191855.n8JItiko022148@imap1.linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-09-20 20:00:32 +02:00
..
2009-08-20 10:29:28 +10:00
2009-09-14 20:26:59 +02:00
2009-06-24 00:02:38 -04:00
2009-06-24 00:02:38 -04:00
2009-06-16 19:47:48 -07:00
2009-08-28 23:41:29 -07:00
2009-05-15 07:56:24 -05:00
2009-07-24 10:53:29 +02:00
2009-01-14 18:09:02 +01:00
2009-06-18 13:03:56 -07:00
2009-07-24 15:30:45 -04:00
2009-06-18 13:03:55 -07:00
2009-09-14 17:41:42 -07:00
2009-07-14 00:30:40 +10:00
2009-09-15 16:51:30 +02:00
2009-09-15 16:51:30 +02:00
2009-08-01 11:18:56 -07:00
2009-08-26 17:24:28 -07:00
2009-06-16 19:47:48 -07:00
2009-07-12 14:03:27 -07:00
2009-06-15 21:30:23 -07:00
2009-06-18 13:03:55 -07:00