mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Srivatsa Vaddagiri <vatsa@in.ibm.com>
To: KUROSAWA Takahiro <kurosawa@valinux.co.jp>
Cc: linux-kernel@vger.kernel.org, ckrm-tech@lists.sourceforge.net,
	Balbir Singh <balbir@in.ibm.com>
Subject: Re: [ckrm-tech] [PATCH 2/2] connect the CPU resource controller to CKRM
Date: Mon, 13 Feb 2006 20:09:22 +0530	[thread overview]
Message-ID: <20060213143922.GB12279@in.ibm.com> (raw)
In-Reply-To: <20060209061152.2164.64958.sendpatchset@debian>

On Thu, Feb 09, 2006 at 03:11:52PM +0900, KUROSAWA Takahiro wrote:
> This patch provides a resource controller for controlling the CPU ratio 
> per class in CKRM. It is just an interface to kernel/cpu_rc.c

[snip]

> +static int __devinit ckrm_cpu_notify(struct notifier_block *self,
> +				unsigned long action, void *hcpu)
> +{
> +	struct ckrm_class *cls = &ckrm_default_class;
> +	struct ckrm_class *child = NULL;
> +	struct ckrm_cpu *res;
> +	int	cpu = (long) hcpu;
> +
> +	switch (action)	{
> +

[snip]

> +		/* FALL THROUGH */
> +	case CPU_UP_PREPARE:
	     ^^^^^^^^^^^^^^
		This should be done at CPU_ONLINE time (since the new CPU won't
be in the cpu_online_map yet)?

> +		grcd.cpus = cpu_online_map;
> +		grcd.numcpus = cpus_weight(cpu_online_map);
> +		break;



--- kernel/ckrm/ckrm_cpu.c.org	2006-01-31 11:37:46.000000000 +0530
+++ kernel/ckrm/ckrm_cpu.c	2006-01-31 11:39:30.000000000 +0530
@@ -295,7 +295,7 @@ static int __devinit ckrm_cpu_notify(str
 		}
 		ckrm_unlock_hier(cls);
 		/* FALL THROUGH */
-	case CPU_UP_PREPARE:
+	case CPU_ONLINE:
 		grcd.cpus = cpu_online_map;
 		grcd.numcpus = cpus_weight(cpu_online_map);
 		break;


-- 
Regards,
vatsa

  reply	other threads:[~2006-02-13 14:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-09  6:11 [PATCH 0/2] CKRM CPU resource controller KUROSAWA Takahiro
2006-02-09  6:11 ` [PATCH 1/2] add a " KUROSAWA Takahiro
2006-02-13 14:33   ` [ckrm-tech] " Srivatsa Vaddagiri
2006-02-13 23:55     ` KUROSAWA Takahiro
2006-02-14  1:45       ` Srivatsa Vaddagiri
2006-02-09  6:11 ` [PATCH 2/2] connect the CPU resource controller to CKRM KUROSAWA Takahiro
2006-02-13 14:39   ` Srivatsa Vaddagiri [this message]
2006-02-13 23:22     ` [ckrm-tech] " KUROSAWA Takahiro

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=20060213143922.GB12279@in.ibm.com \
    --to=vatsa@in.ibm.com \
    --cc=balbir@in.ibm.com \
    --cc=ckrm-tech@lists.sourceforge.net \
    --cc=kurosawa@valinux.co.jp \
    --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®