From: Con Kolivas <kernel@kolivas.org>
To: Dave Kleikamp <shaggy@austin.ibm.com>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [-mm patch] Avoid divide by zero errors in sched.c
Date: Fri, 12 Aug 2005 23:17:04 +1000 [thread overview]
Message-ID: <200508122317.04387.kernel@kolivas.org> (raw)
In-Reply-To: <1123852222.9234.7.camel@kleikamp.austin.ibm.com>
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 <shaggy@austin.ibm.com>
Acked-by: Con Kolivas <kernel@kolivas.org>
prev parent reply other threads:[~2005-08-12 13:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-12 13:10 [-mm patch] Avoid divide by zero errors in sched.c Dave Kleikamp
2005-08-12 13:17 ` Con Kolivas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200508122317.04387.kernel@kolivas.org \
--to=kernel@kolivas.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shaggy@austin.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox