Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp735372pxy; Wed, 5 May 2021 12:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVxT7OfvT3nkFK/7cg/MEWC9TVHs4lJjUGtaRYXx3rBaUHw9Gzk4ZbG29tzfFk3FwRvln9 X-Received: by 2002:a17:90b:1b03:: with SMTP id nu3mr13088397pjb.62.1620243041737; Wed, 05 May 2021 12:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620243041; cv=none; d=google.com; s=arc-20160816; b=nLRfJfTdUh6SrFOhmip+NOKhsePV+TJMXQ+C9xxOYw68Odb7BaxyhVvx17Uj8sH2Z8 zOo/DYYfvPI9iHY5/iAowaBDYWFOmOJsUmq/0Y7anQYt/ocAoYXntQMLs/MTcAwyzHbU aOyBZwLcx2Z9qcrdDPd3MlICi+Eep5Y3S6aM+oJ3pO1m0/OR1w9bdvyjY12+Fph6nEu2 XCicFkGUoz/pUT76jRIPVJ8Z96CDtHMwR6sWixXWUX2dGoAHEZR7CJVNIakRYWk1EeYL 5paC/qSA8rw6TO7COx9JRQrXw6umaD24KryWMt0k0FQj6D0UKV7mnGNfq58INmKNdoXm sceQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=z8RCoe0dp4wocfWg6EwfFMax2P8RpRWoHodPddpu/iQ=; b=nZ4iiCG+PxhBuK6lT/j0oS07GVuOaaVJLm7CVAslxGkGidfjfvI+NyfeEFB/8rau5p VK/27RGnaU49Sree2BLu+GZNFzIPsOVdRqHJtYk9aAXPLnIKwj+68eevWgWKJ+UPNHsx mO021Zb60pZueNoxQTFTjmTsLPeInz45blPwRWZdKkBzFHLbK+DrI7fbsvxEq8xpJvac x6NJ4Afl3PL9vjd5odQ2YJIUYNVmIdpEU1eh2+VRd+oLk0qMtl1DKiOvfJUjV7NxAGsQ CSKKAjef4HB8HNJoE+/BHvvVoEQfIqqAOUyZwAIIueYFGnRnmYJw/ZZxddzaS2mGZxCN dp+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r9si107269pjd.142.2021.05.05.12.30.28; Wed, 05 May 2021 12:30:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233213AbhEEOl5 (ORCPT + 99 others); Wed, 5 May 2021 10:41:57 -0400 Received: from shelob.surriel.com ([96.67.55.147]:38398 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233192AbhEEOl5 (ORCPT ); Wed, 5 May 2021 10:41:57 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1leIhu-0006ci-GP; Wed, 05 May 2021 10:40:58 -0400 Message-ID: <9296a6244d4aada03633ae6e8a984df372089fff.camel@surriel.com> Subject: Re: [PATCH 1/6] delayacct: Use sched_clock() From: Rik van Riel To: Peter Zijlstra , tglx@linutronix.de, mingo@kernel.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, bsingharora@gmail.com, pbonzini@redhat.com, maz@kernel.org Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, hannes@cmpxchg.org Date: Wed, 05 May 2021 10:40:57 -0400 In-Reply-To: <20210505111525.001031466@infradead.org> References: <20210505105940.190490250@infradead.org> <20210505111525.001031466@infradead.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-4hXqd8YByiR6kjvdagQA" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Sender: riel@shelob.surriel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-4hXqd8YByiR6kjvdagQA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2021-05-05 at 12:59 +0200, Peter Zijlstra wrote: > Like all scheduler statistics, use sched_clock() based time. >=20 > Signed-off-by: Peter Zijlstra (Intel) Looks like this works even on messed up systems because the delayacct code is called from the same CPU at sleep time and wakeup time, before a task is migrated. Reviewed-by: Rik van Riel --=20 All Rights Reversed. --=-4hXqd8YByiR6kjvdagQA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAmCSrnkACgkQznnekoTE 3oO6YQgAqiTwiWVDFt9ana4e9J7G4PRzEAbmg4QYW5bmmFRzmQQ/e1kcbPmC2MQ4 o0I5b14YBTIK64k8g+xE0kp3OBQPoXdeBHGTx94WU962lKyM0RkZ9kxC3XL282DB 7K+ikkM6VZFbStDDokJJi9GQazdmqRIXHDh2cI7xxElb9MMSSacYaj8Agh9w4tVU U8xwJEd0UNMjEbT5E/CebWAJ1p+8p0vSKLLrIpVtEz97AsnsjgAkPWQuOIsZlNhR wEYZc8R/4k9sFzQb7xsKnkXkFdBKBEJRo8ptyTDtPTJ0kbrW4Y1RgSzNY9seg88G pEHk+DeB8wbzIEoJ+S8pnTL27cPheg== =5CYx -----END PGP SIGNATURE----- --=-4hXqd8YByiR6kjvdagQA--