Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753518AbXIRISk (ORCPT ); Tue, 18 Sep 2007 04:18:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751557AbXIRIS1 (ORCPT ); Tue, 18 Sep 2007 04:18:27 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:39777 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751102AbXIRISZ (ORCPT ); Tue, 18 Sep 2007 04:18:25 -0400 Date: Tue, 18 Sep 2007 17:19:45 +0900 From: KAMEZAWA Hiroyuki To: vatsa@linux.vnet.ibm.com Cc: Ingo Molnar , akpm@linux-foundation.org, containers@lists.osdl.org, linux-kernel@vger.kernel.org, ckrm-tech@lists.sourceforge.net Subject: Re: [PATCH] Hookup group-scheduler with task container infrastructure Message-Id: <20070918171945.d0593a08.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20070910171049.GA16048@linux.vnet.ibm.com> References: <20070910171049.GA16048@linux.vnet.ibm.com> Organization: Fujitsu X-Mailer: Sylpheed 2.4.2 (GTK+ 2.10.11; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 738 Lines: 21 On Mon, 10 Sep 2007 22:40:49 +0530 Srivatsa Vaddagiri wrote: > + tg->cfs_rq = kzalloc(sizeof(cfs_rq) * num_possible_cpus(), GFP_KERNEL); > + if (!tg->cfs_rq) > + goto err; > + tg->se = kzalloc(sizeof(se) * num_possible_cpus(), GFP_KERNEL); > + if (!tg->se) > + goto err; Sorry for very lazy responce.. num_possible_cpus() just returns # of possible cpus. Then it will not return Max-cpu-id to be used. I think just use NR_CPUS here is an easy way. Thanks, -Kame - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/