From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754133AbcEOKKE (ORCPT ); Sun, 15 May 2016 06:10:04 -0400 Received: from mga04.intel.com ([192.55.52.120]:13803 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbcEOKKB (ORCPT ); Sun, 15 May 2016 06:10:01 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,622,1455004800"; d="scan'208";a="103942044" Date: Sun, 15 May 2016 10:14:39 +0800 From: Yuyang Du To: Matt Fleming Cc: Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, Byungchul Park , Frederic Weisbecker , Luca Abeni , "Rafael J . Wysocki" , Rik van Riel , Thomas Gleixner , Wanpeng Li , Mel Gorman , Mike Galbraith Subject: Re: [RFC][PATCH 5/5] sched/core: Add debug code to catch missing update_rq_clock() Message-ID: <20160515021439.GC8790@intel.com> References: <1463082593-27777-1-git-send-email-matt@codeblueprint.co.uk> <1463082593-27777-6-git-send-email-matt@codeblueprint.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1463082593-27777-6-git-send-email-matt@codeblueprint.co.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matt, Thanks for Ccing me. I am indeed interested, because I recently encountered an rq clock issue, which is that the clock jumps about 200ms when I was experimenting the "flat util hierarchy" patches, which really annoyed me, and I had to stop to figure out what is wrong (but haven't yet figured out ;)) First, this patchset does not solve my problem, but never mind, by reviewing your patches, I have some comments: On Thu, May 12, 2016 at 08:49:53PM +0100, Matt Fleming wrote: > > - rq->clock_skip_update = 0; > + /* Clear ACT, preserve everything else */ > + rq->clock_update_flags ^= RQCF_ACT_SKIP; The comment says "Clear ACT", but this is really xor, and I am not sure this is even what you want. In addition, would it be simpler to do this? update_rq_clock() if (flags & RQCF_ACT_SKIP) flags <<= 1; /* effective skip is an update */ return; flags = RQCF_UPDATED; Thanks, Yuyang