Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3524003ybi; Tue, 18 Jun 2019 02:08:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDHE3jrTzxzIQB4WMDRFn6l7qV21uX0xwY9XWBh9zZgiedSGK1giRcOBX/1a6YAnsg1p9a X-Received: by 2002:a17:902:6947:: with SMTP id k7mr39631099plt.253.1560848939793; Tue, 18 Jun 2019 02:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560848939; cv=none; d=google.com; s=arc-20160816; b=TAWNfve9n4HHljsv9SbKkpcawlVg4zqY5ubQkRBROPtlpRm1Hayw4/D9zzpdi6jasX Vh0qWksOo6qAckRXZolsE/+Kqz6bGkIKzgJ6gZ9JV7AsRW1psWJLxR3DLI/Jt3M4vFLN gTfivAy1xGWxuSGV5UpekdbTCV+bkBwY576dYhvnsIqiyPQNRK947C0g10kCb4GYAi1i RlSFteIXAEGbqyDK7KEPVwdUPsrXLwhvKAUUkg2Do7eUVrMs99vfLQDQBs6fzPWHRuBG b3E601KvM/se0DbmSLXSr4JEU/RKM0Efpm311HUiGWJP686ovPrdLKpZpe5yjLS01N/I HWBw== 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=gQ5ZISe1HFzuvw5BHUybaEu6hBFiWfsKYXle3jOz/kk=; b=bLEGtO06IJjjGtuLYGY5reymNvwn4aI9ScGzDe1AOnS8ukIm7UrlXzma0EUxnzx3vx wuZnKr7f7Jgx7EkK2TV/FNbOzee7U2iiUSnXYQ6G87WQqh2E+xRwF4JzHgQQqfhLqkQl k9Wvljvfe/HLqGQKi94xe8Ou62Q4ZJd4ACq26M4yejqEfJ3mG5Fu9WPuILlBWDQMe113 pJ/rwoMTykpvvOgDVh0ivTrHoF7gmbhBJtFgQCwq5uwM/2WgzO4v88F6kLv1FKceAS+G +3hy7WnSCfbip/H2atn5ep9FtYtgBP13bnEcwuHIQkeJL87vkQEJ6PfBLVqDVD4IFmt9 V1JA== 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 j59si12632560plb.176.2019.06.18.02.08.44; Tue, 18 Jun 2019 02:08:59 -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 S1729410AbfFRJIN (ORCPT + 99 others); Tue, 18 Jun 2019 05:08:13 -0400 Received: from foss.arm.com ([217.140.110.172]:58294 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729086AbfFRJIM (ORCPT ); Tue, 18 Jun 2019 05:08:12 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 47C5F344; Tue, 18 Jun 2019 02:08:12 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.cambridge.arm.com [10.1.194.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 971A63F246; Tue, 18 Jun 2019 02:08:10 -0700 (PDT) Subject: Re: [PATCH 3/8] sched,fair: redefine runnable_load_avg as the sum of task_h_load To: Rik van Riel , peterz@infradead.org Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, kernel-team@fb.com, morten.rasmussen@arm.com, tglx@linutronix.de, dietmar.eggeman@arm.com, mgorman@techsingularity.com, vincent.guittot@linaro.org References: <20190612193227.993-1-riel@surriel.com> <20190612193227.993-4-riel@surriel.com> From: Dietmar Eggemann Message-ID: <750a19c9-d0b2-baa1-2d2f-756e3bff1892@arm.com> Date: Tue, 18 Jun 2019 11:08:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190612193227.993-4-riel@surriel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rik, On 6/12/19 9:32 PM, Rik van Riel wrote: [...] > @@ -379,17 +368,11 @@ int update_irq_load_avg(struct rq *rq, u64 running) > * We can safely remove running from rq->clock because > * rq->clock += delta with delta >= running > */ > - ret = ___update_load_sum(rq->clock - running, &rq->avg_irq, > - 0, > - 0, > - 0); > - ret += ___update_load_sum(rq->clock, &rq->avg_irq, > - 1, > - 1, > - 1); > + ret = ___update_load_sum(rq->clock - running, &rq->avg_irq, 0); > + ret += ___update_load_sum(rq->clock, &rq->avg_irq, 1); The 'int running' argument in the two ___update_load_sum() calls is missing. Doesn't compile for me (arm64 defconfig w/ CONFIG_IRQ_TIME_ACCOUNTING=y). [...]