From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH v2 3/5] xen: print online pCPUs and free pCPUs when dumping Date: Wed, 18 Mar 2015 11:03:25 +0000 Message-ID: <5509698D020000780006B297@mail.emea.novell.com> References: <20150317152615.9867.48676.stgit@Solace.station> <20150317153309.9867.20149.stgit@Solace.station> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150317153309.9867.20149.stgit@Solace.station> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli , Juergen Gross Cc: George Dunlap , Keir Fraser , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 17.03.15 at 16:33, wrote: > @@ -671,12 +678,17 @@ void dump_runq(unsigned char key) > sched_smt_power_savings? "enabled":"disabled"); > printk("NOW=0x%08X%08X\n", (u32)(now>>32), (u32)now); > > + print_cpumap("Online Cpus", &cpu_online_map); > + if ( cpumask_weight(&cpupool_free_cpus) ) This is certainly more expensive than necessary - mind if I change this to !cpumask_empty() on commit? Jan