Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp95224pxb; Tue, 10 Nov 2020 21:18:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwHjpIloveuiEofICnDWElecXhBPeix5ULIa4krfJsKYNJMIAuisapV0qpD24myDhYKwbv X-Received: by 2002:a17:906:c8d8:: with SMTP id gc24mr24361287ejb.417.1605071924272; Tue, 10 Nov 2020 21:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605071924; cv=none; d=google.com; s=arc-20160816; b=F6FrRKeYIaGGdYZBOcchuGMcDepTF5Ar9Eh0dRMzlNfixKKK6wM7wmLZ+a/vr48Svd fgMgxLgziUgxXny73ghE2/XU2PG7XpFMvAdAxOwuILIR2Nb6wG/zcf9gBx4JumbqUcT5 1jL7N/hRZp8tDi4CV/tY8TzD5NeFYvQZPBJkaxiKVhlVJ4HfsIHJ70HQcA+ES7cP149Z t1WWYzAH2x8rMbEz7BQAYllZkIEj57ltPii1HD5BKSk6t/PaoBHUoukieisVXJ6YZTib c0eJcMtfBPHmUyk6La5QQ2jS0zLO4mnilOIVEfK3UesR72qZxptxuqU282Lnbf6jxqKZ oIRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sul7TzPz5qF1XraO9vAG985VB9LlYhMpRl/uNls2UjU=; b=1Gc97BiInJkaStrYM8gjXOwTMpW8YchWj+NOrJ5AeAam3Pv70G/fpAAC72Xggtrbt3 02qNIwSywf8+yHbO5jlZDLKzZNLfSvWzzPEZoDtB1v+/su8oUeL7KX3YI6+fOrucHZNF Zy1K1ZpJom+a41UKVWTJ2P8oHp7QKdIjBgh9YHRsvw1R5syjFZoeAXnP0lZGPttfIJoU Uc9Og0t4GfJUII6Odrd+kslakKDszC8pR/L3OvSrSp5W9ojPS8RvuC0zStuVzeLjWY2x eXbjSOTTlnCX0Xs9C2ygxMX/whHYda7kJomq3kXmVFroA8ufoDi5/cwg3N/AFtKBXCJW Z3HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UPgyXL95; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs5si674915edb.369.2020.11.10.21.18.20; Tue, 10 Nov 2020 21:18:44 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=UPgyXL95; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726005AbgKKFO0 (ORCPT + 99 others); Wed, 11 Nov 2020 00:14:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725859AbgKKFOY (ORCPT ); Wed, 11 Nov 2020 00:14:24 -0500 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC9C7C0613D6 for ; Tue, 10 Nov 2020 21:14:23 -0800 (PST) Received: by mail-pj1-x1041.google.com with SMTP id gi3so112308pjb.3 for ; Tue, 10 Nov 2020 21:14:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sul7TzPz5qF1XraO9vAG985VB9LlYhMpRl/uNls2UjU=; b=UPgyXL95q28Kgd5y6d93bt4A569RsW2McX9HlMQezIVbuFHdgFUecyO47PAmyrmTQ1 u37QTkbuRqjAP52c2bu/EtjrNmaso1HkfRjYXojlzwABRJ3pGFKtEolAyVP2M2LhQCdw McX91JE3dV7dtbLXHF5lvIglLT7FwaHZB0uOfHKtS1sjp9opOJJ2Bb4Wr9MIfJMMi5+5 U1DK+a/Dip5wE8riJwz+wmesvWH/1NFZXgfispH5TAAGLtWxYXNZIjp01HPwCf6R6Abv Ur9MhTe/ek+XHD8kzpQOaZ3ytC3FJwqLAAZusPs39q494zDvqwAc87wS7crysFA2Ic07 5BPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sul7TzPz5qF1XraO9vAG985VB9LlYhMpRl/uNls2UjU=; b=R1W74XhpjIaO7jhhyVlN2j84z3bhme/RlUlHCSvZHqAiP9Af8DUK11SgTnSyFoZnMs vBhKb3htiokS4nat7C5G65vFKB0C7kHzXdoxi8NmpVI0E8UGYs8M6wMXRzKWHX1yoaIo PRGGrnCOO9ttVEX2jJMAc59nNwWVF4H+u96nj1VpjmkUgdF2QMVnrnN9HwV3365/kCOi +GLpGF/rwOBTWBjZKpEAGIOTmQgBEf7yHgcwZlCL5OFUw3KSmrCBVirwucZFfIGXP9LN 211dCnFtXYxCUJCIvjvQ0z+LAu1DG785arUplSHzCOnGowthzUx98l0/y3pVsB2gSbAQ Pwow== X-Gm-Message-State: AOAM530Nmz595uTfr+HLYX7IhxosM70XwKXwdOdyj8u+xbJsBnIfsByq qfjMLn3YmJUuNTj1nx9viU3pa0VXcEahYQ== X-Received: by 2002:a17:90b:351:: with SMTP id fh17mr2105299pjb.214.1605071663286; Tue, 10 Nov 2020 21:14:23 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id u197sm853670pfc.127.2020.11.10.21.14.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2020 21:14:22 -0800 (PST) Date: Wed, 11 Nov 2020 10:44:20 +0530 From: Viresh Kumar To: Lukasz Luba Cc: Rafael Wysocki , Jonathan Corbet , linux-pm@vger.kernel.org, Vincent Guittot , Thomas Renninger , Shuah Khan , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime Message-ID: <20201111051420.wy7vapqx3gwcvzdw@vireshk-i7> References: <0e0fb542b6f6b26944cb2cf356041348aeac95f6.1605006378.git.viresh.kumar@linaro.org> <5860b346-4eab-4018-87e4-a6313115fa2d@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5860b346-4eab-4018-87e4-a6313115fa2d@arm.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10-11-20, 11:36, Lukasz Luba wrote: > I am not sure if these ktime_get() are not too heavy in the code path > visited by the scheduler. Ahh Right. I missed that. > How about local_clock()? > It's used in ./drivers/cpuidle/cpuidle.c to do similar accounting. Will have a look. -- viresh