[lkml]   [2005]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [-mm patch] Avoid divide by zero errors in sched.c
On Fri, 12 Aug 2005 23:10, Dave Kleikamp wrote:
> This patch fixes a divide-by-zero error that I hit on a two-way i386
> machine. rq->nr_running is tested to be non-zero, but may change by the
> time it is used in the division. Saving the value to a local variable
> ensures that the same value that is checked is used in the division.
> Signed-off-by: Dave Kleikamp <>

Acked-by: Con Kolivas <>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-08-12 15:20    [W:0.032 / U:6.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site