Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937221Ab3DIQxQ (ORCPT ); Tue, 9 Apr 2013 12:53:16 -0400 Received: from mail-bk0-f52.google.com ([209.85.214.52]:58275 "EHLO mail-bk0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936277Ab3DIQxP (ORCPT ); Tue, 9 Apr 2013 12:53:15 -0400 MIME-Version: 1.0 In-Reply-To: <1365513508.30071.4.camel@laptop> References: <1365266760-24725-1-git-send-email-fweisbec@gmail.com> <1365266760-24725-4-git-send-email-fweisbec@gmail.com> <1365513508.30071.4.camel@laptop> Date: Tue, 9 Apr 2013 18:53:13 +0200 Message-ID: Subject: Re: [PATCH 3/7] sched: Update rq clock on tickless CPUs before calling check_preempt_curr() From: Frederic Weisbecker To: Peter Zijlstra 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 Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 944 Lines: 22 2013/4/9 Peter Zijlstra : > 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. > Agreed! -- 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/