mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: "Kevin O'Connor" <kevin@koconnor.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: O(1) batch scheduler
Date: Thu, 11 Jul 2002 08:32:28 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0207110831350.3580-100000@localhost.localdomain> (raw)
In-Reply-To: <20020709223021.A4567@arizona.localdomain>


On Tue, 9 Jul 2002, Kevin O'Connor wrote:

> -			rq->idle_ticks_left = IDLE_TICKS;
> -			for (i = IDLE_SLOTS-1; i > 0; i--)
> -				rq->idle_count[i] = rq->idle_count[i-1];
> -			rq->idle_count[0] = 0;
> -			rq->idle_avg = recalc_idle_avg(rq);
> +			rq->idle_avg = (rq->idle_avg * (IDLE_SLOTS - 1)
> +					+ rq->idle_count) / IDLE_SLOTS;
> +			rq->idle_count = 0;

this part is buggy: ->idle_ticks_left needs to be reset in this branch.

	Ingo


  parent reply	other threads:[~2002-07-10  6:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-01  9:45 [patch] sched-2.5.24-D3, batch/idle priority scheduling, SCHED_BATCH Ingo Molnar
2002-07-10  2:30 ` O(1) batch scheduler Kevin O'Connor
2002-07-11  6:27   ` Ingo Molnar
2002-07-11  6:32   ` Ingo Molnar [this message]
2002-07-11  7:05   ` [patch] " Ingo Molnar
2002-07-11  4:41     ` Kevin O'Connor

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=Pine.LNX.4.44.0207110831350.3580-100000@localhost.localdomain \
    --to=mingo@elte.hu \
    --cc=kevin@koconnor.net \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®