Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3676467ybc; Mon, 25 Nov 2019 19:06:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxKM5LEVUyVkE6l183eCbHM2emlKZJEfGv2liVG7X7mA89HszVA4dF/yEY2c1XGzEVMUTpu X-Received: by 2002:a17:906:fac7:: with SMTP id lu7mr41349995ejb.5.1574737582507; Mon, 25 Nov 2019 19:06:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574737582; cv=none; d=google.com; s=arc-20160816; b=csdNm0JO4vgagqbiy4Cv2HunzvnSykJ1qYwsV4MMrZgGzbqqQBnzbiMlo0QgErf3ea oUSW+Hgc2oEPLNFJsSqYFkOMpty9B2JgrR//93zGLvHReRIgt1Ag9984kNB1tZF5gh9Y EBDlSzYqcc58GSqXm74R5Q0HQdTsXLKQj+B11qaic5AK+wUtZOcT7yAJdvktJ61g03bb lavcNRqif4y6P+qLOr3HP+qRajMpQhjdFzTamu7+0Y2xdLlEKZbnagxwgvYGyPZLucjv ShXyAOu2cFTRly1kHN3IfDnf4SZWLoBcFthD+kA1FVrIMgR76KHbKmamuGUTQs0o90lt ck7g== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=U4VK8y3TGwrQrTTLGoGY/Sz/+8bSigII6WIe7UI7Fsg=; b=NArRGxuaKNjuYHjVyZ8hKSWkrVggMv186CXJ3oXYhmLwJ8h5xQPGjckRdc2ZV6zFaD +sgF+MuC5ur/U3nWWVza7XfkAhzWuBfzq+MHbt6b4XFbuHgXW9LAzmFg+d7M5FgWgzVt 8Y6EPMVAPOUeVoCdkZOe7hSZahE3Rlm/B0rdrEccINfM67GTZ1UtdKZ4o+mYtUp9aYyz kpe69cHkQTN9Ddv3UU7+4n+erfYmY574YBkYn5Q7UNVN8cVWuJJxtKuRrHqTO4Bi+GWd 8IHkkgUw3qYH9Qsa25U+nIXlH4jQtvfR93gIK+UpKKINcWd1t63uNcYhzn9rOe/ketZs fDnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=SUFHjTwt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si5918487eje.253.2019.11.25.19.05.58; Mon, 25 Nov 2019 19:06:22 -0800 (PST) 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; dkim=pass header.i=@mediatek.com header.s=dk header.b=SUFHjTwt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727295AbfKZDBA (ORCPT + 99 others); Mon, 25 Nov 2019 22:01:00 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:37782 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725946AbfKZDBA (ORCPT ); Mon, 25 Nov 2019 22:01:00 -0500 X-UUID: a39f13485f844b13895c3be9b3b498dd-20191126 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=U4VK8y3TGwrQrTTLGoGY/Sz/+8bSigII6WIe7UI7Fsg=; b=SUFHjTwtnhBzGLG9YOyIDp1I1RtMyUDYWZE/RbN2B03qM432PH1Xdb7GDVgvXDDXd7PviVe4A1oEA3P6E8CMnzjwZgwsE0I1itVnLLLMkyHQrdj0YfXJRvupQWWgVi28Rh0DWlZXlrdvOHG6FWMVJKkbrxkjHGS5B9uPbuiot90=; X-UUID: a39f13485f844b13895c3be9b3b498dd-20191126 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 635451793; Tue, 26 Nov 2019 11:00:53 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 26 Nov 2019 11:00:43 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 26 Nov 2019 11:00:33 +0800 Message-ID: <1574737251.12247.11.camel@mtksdccf07> Subject: Re: [PATCH 1/1] sched: cfs_rq h_load might not update due to irq disable From: Kathleen Chang To: Peter Zijlstra CC: Matthias Brugger , , , , , Vincent Guittot Date: Tue, 26 Nov 2019 11:00:51 +0800 In-Reply-To: <20191121123804.GR4097@hirez.programming.kicks-ass.net> References: <1574325009-10846-1-git-send-email-yt.chang@mediatek.com> <20191121123804.GR4097@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDE5LTExLTIxIGF0IDEzOjM4ICswMTAwLCBQZXRlciBaaWpsc3RyYSB3cm90ZToN Cj4gT24gVGh1LCBOb3YgMjEsIDIwMTkgYXQgMDQ6MzA6MDlQTSArMDgwMCwgWVQgQ2h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