Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934351Ab3DINSj (ORCPT ); Tue, 9 Apr 2013 09:18:39 -0400 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:48400 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759169Ab3DINSi (ORCPT ); Tue, 9 Apr 2013 09:18:38 -0400 Message-ID: <1365513508.30071.4.camel@laptop> Subject: Re: [PATCH 3/7] sched: Update rq clock on tickless CPUs before calling check_preempt_curr() From: Peter Zijlstra To: Frederic Weisbecker Cc: Ingo Molnar , LKML , Alessio Igor Bogani , Andrew Morton , Chris Metcalf , Christoph Lameter , Geoff Levand , Gilad Ben Yossef , Hakan Akkan , Li Zhong , Namhyung Kim , "Paul E. McKenney" , Paul Gortmaker , Steven Rostedt , Thomas Gleixner , Paul Turner , Mike Galbraith Date: Tue, 09 Apr 2013 15:18:28 +0200 In-Reply-To: <1365266760-24725-4-git-send-email-fweisbec@gmail.com> References: <1365266760-24725-1-git-send-email-fweisbec@gmail.com> <1365266760-24725-4-git-send-email-fweisbec@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 870 Lines: 19 On Sat, 2013-04-06 at 18:45 +0200, Frederic Weisbecker wrote: > check_preempt_wakeup() of fair class needs an uptodate sched clock > value to update runtime stats of the current task. > > When a task is woken up, activate_task() is usually called right > before > ttwu_do_wakeup() unless the task is still in the runqueue. In this > case we need to update the rq clock manually in case the CPU runs > tickless because ttwu_do_wakeup() calls check_preempt_wakeup(). again, same story.. I think the entire nohz specific clock update stuff is completely broken and you're finding sites that are simply missing clock updates. -- 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/