1
0
Files
linux/kernel
Peter Williams b78709cfd4 [PATCH] sched: fix SCHED_FIFO bug in sys_sched_rr_get_interval()
The introduction of SCHED_BATCH scheduling class with a value of 3 means
that the expression (p->policy & SCHED_FIFO) will return true if policy
is SCHED_BATCH or SCHED_FIFO.

Unfortunately, this expression is used in sys_sched_rr_get_interval()
and in the absence of a comment to say that this is intentional I
presume that it is unintentional and erroneous.

The fix is to change the expression to (p->policy == SCHED_FIFO).

Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-26 10:02:41 -07:00
..
2006-06-26 09:58:16 -07:00
2006-03-26 08:57:03 -08:00
2006-06-26 09:58:22 -07:00
2006-06-25 10:01:13 -07:00
2006-06-25 10:01:06 -07:00
2006-06-25 10:01:15 -07:00
2006-04-19 16:27:18 -07:00