From: Mark Williamson Subject: Re: [PATCH] 2/4 "nemesis" scheduling domains for Xen Date: Mon, 7 May 2007 20:58:00 +0100 Message-ID: <200705072058.00642.mark.williamson@cl.cam.ac.uk> References: <20070504222432.GC26054@silverwood.ncultra.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070504222432.GC26054@silverwood.ncultra.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, ncmike@us.ibm.com List-Id: xen-devel@lists.xenproject.org Hi Mike, A couple of minor coding style quibbles. I'll leave actually design comments to those who've worked on the scheduler more recently than I! As Keir said, there's a few minor formatting differences from the Xen code (e.g. spacing around the brackets in if statements). I'd like to add that in Xen code that isn't shared with Linux, NULL is preferred to 0 when assigning to a pointer. Applying this patch and running it through sparse through sparse gave me: > sched_credit.c:457:18: warning: Using plain integer as NULL pointer > sched_credit.c:998:18: warning: Using plain integer as NULL pointer Only a minor nit. Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!