From: "Jan Beulich" Subject: credit2 question Date: Thu, 24 Jan 2013 07:40:23 +0000 Message-ID: <5100F37702000078000B8FC2@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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: George Dunlap Cc: xen-devel List-Id: xen-devel@lists.xenproject.org George, I'm getting puzzled by the second c2t() invocation in csched_runtime(): Why is the difference of credits being passed here? Doesn't that (unless svc->credit is non-positive, i.e. in all but unusual cases) guarantee time > ntime, and particularly allow for negative ntime? Thanks, Jan