Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1903468ima; Thu, 25 Oct 2018 06:49:51 -0700 (PDT) X-Google-Smtp-Source: AJdET5e2Shb/2MrFmgOOys8l/yeg8g6FdqpwgnIt/oLA8Kmns/6tv+FGkVGMyFT+TlF6hAQPQXI5 X-Received: by 2002:a63:9e58:: with SMTP id r24mr1619453pgo.264.1540475391488; Thu, 25 Oct 2018 06:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540475391; cv=none; d=google.com; s=arc-20160816; b=0PncrRphWRDSJHoWQSTrH8wgA7aoWMEREbgU1RolV6X74ATdpiDP7j8t02/od/PZpI 40K9BnwWIpWtiISVtGb7dibW09VbFMwRGoMTkOLpLyxBD77ICumG+ZFv/rth1D3hrjHD w2BsMLit2D82Rz3m+Z/vGEaroy0ILkYeB8+Ws2joBhckJ3hQr/gTlYdm3WkeQ4NthlyV og918AboeX93wjuI7pLHQUGJtKU/e0wb6CVoKpdP+Ku/QlcovOepEEZuA3oeLI2ACA2d dkhlFgt9f4MjFZS50i4rmbf3P1zbZLq9KDstgCx+11v+UVPJb7kwrBwb/hWuP3rfxFGA +0DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6gBbCRiCyqNDRVP6ktW71xEWM5ryQvCh4kIkpsZhWfg=; b=LGv3bxh/5FSY4LEapvK3xTv/chKhgjSC/j7efwrd+d76OcVdBMSHCXFMb5SLhZ/BSD NPGe3dKGM3/6NTOI16fCzGIF9SaL2vCBVhpa/IwcSy+dv7J33d7bWgJXH8dLW9mp14fq IpsrVsjnNu0qvbhPFZ1vwcnXbPlOqrajx+evXgYsF/iKUTJ97GtE3Sc7l8Vq+/hAyVth 0reSeuq3t4ZbsL25noWbwAefzkSeL5jE8G8Emh4qCv69DuYe34WY4OzKchFtB5ZbOrsy QEhzfQnlRyizAHiBKFml9nyfRoGEBxVDkkmVLWCPBudBMAKWrjxs3rTs1TQzfV8NYO31 K3Bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b137-v6si34991pfb.144.2018.10.25.06.49.35; Thu, 25 Oct 2018 06:49:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727428AbeJYWUh (ORCPT + 99 others); Thu, 25 Oct 2018 18:20:37 -0400 Received: from foss.arm.com ([217.140.101.70]:57116 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727308AbeJYWUh (ORCPT ); Thu, 25 Oct 2018 18:20:37 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6FACCA78; Thu, 25 Oct 2018 06:47:47 -0700 (PDT) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 350BF3F6A8; Thu, 25 Oct 2018 06:47:45 -0700 (PDT) Subject: Re: [PATCH 05/10] sched/fair: Hoist idle_stamp up from idle_balance To: Steve Sistare , mingo@redhat.com, peterz@infradead.org Cc: subhra.mazumdar@oracle.com, dhaval.giani@oracle.com, rohit.k.jain@oracle.com, daniel.m.jordan@oracle.com, pavel.tatashin@microsoft.com, matt@codeblueprint.co.uk, umgwanakikbuti@gmail.com, riel@redhat.com, jbacik@fb.com, juri.lelli@redhat.com, linux-kernel@vger.kernel.org References: <1540220381-424433-1-git-send-email-steven.sistare@oracle.com> <1540220381-424433-6-git-send-email-steven.sistare@oracle.com> From: Valentin Schneider Message-ID: <2a368b7c-3ecf-9b0c-a930-d2e739ea9b17@arm.com> Date: Thu, 25 Oct 2018 14:47:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1540220381-424433-6-git-send-email-steven.sistare@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steve, On 22/10/2018 15:59, Steve Sistare wrote: [...] > @@ -6740,8 +6744,19 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_ > return p; > > idle: > + /* > + * We must set idle_stamp _before_ calling idle_balance(), such that we > + * measure the duration of idle_balance() as idle time. > + */ > + IF_SMP(rq->idle_stamp = rq_clock(rq);) > + > new_tasks = idle_balance(rq, rf); > > + if (new_tasks) > + IF_SMP(rq->idle_stamp = 0;) > + > + schedstat_end_time(rq->find_time, time); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ That's a stray hunk from 10/10 [...]