Oleg Nesterov 93dcf55f82 wait_task_inactive: "improve" the returned value for ->nvcsw == 0
wait_task_inactive() returns 1 when p->nvcsw == 0 || p->nvcsw == 1.  This
means that two subsequent calls can return the same number while the task
was scheduled in between.

Change the code to return "nvcsw | LONG_MIN" instead of "nvcsw ?: 1", now
the overlap always needs LONG_MAX schedules.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-08-22 15:17:31 +02:00
..
2008-07-28 23:32:00 +02:00
2008-07-26 20:53:20 -04:00
2008-08-01 12:01:11 -07:00
2008-07-28 16:30:21 -07:00
2008-07-28 14:37:38 +02:00
2008-07-26 12:00:04 -07:00
2008-08-01 08:39:35 -05:00
2008-07-26 12:00:09 -07:00
2008-08-11 22:45:51 +02:00
2008-08-05 14:33:50 -07:00
2008-07-26 12:00:09 -07:00
2008-07-30 09:41:43 -07:00
2008-08-11 14:49:29 +02:00
2008-08-11 09:30:24 +02:00
2008-07-26 12:00:04 -07:00
2008-07-25 10:53:45 -07:00
2008-07-27 09:45:34 -07:00