Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758106Ab1FVPsq (ORCPT ); Wed, 22 Jun 2011 11:48:46 -0400 Received: from casper.infradead.org ([85.118.1.10]:44228 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753924Ab1FVPsp convert rfc822-to-8bit (ORCPT ); Wed, 22 Jun 2011 11:48:45 -0400 Subject: Re: [patch 07/16] sched: expire invalid runtime From: Peter Zijlstra To: Paul Turner Cc: linux-kernel@vger.kernel.org, Bharata B Rao , Dhaval Giani , Balbir Singh , Vaidyanathan Srinivasan , Srivatsa Vaddagiri , Kamalesh Babulal , Hidetoshi Seto , Ingo Molnar , Pavel Emelyanov In-Reply-To: <20110621071700.395400025@google.com> References: <20110621071649.862846205@google.com> <20110621071700.395400025@google.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Wed, 22 Jun 2011 17:47:38 +0200 Message-ID: <1308757658.1022.50.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 532 Lines: 13 On Tue, 2011-06-21 at 00:16 -0700, Paul Turner wrote: > + now = sched_clock_cpu(smp_processor_id()); > + cfs_b->runtime_expires = now + ktime_to_ns(cfs_b->period); > + if ((s64)(rq->clock - cfs_rq->runtime_expires) < 0) Is there a good reason to mix these two (related) time sources? -- 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/