From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCFA7C55ABD for ; Wed, 11 Nov 2020 05:14:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 569F320639 for ; Wed, 11 Nov 2020 05:14:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UPgyXL95" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726026AbgKKFO0 (ORCPT ); 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-Google-Smtp-Source: ABdhPJwJzT/EbwsgNXsUfOzHkgAE5KhjmVJtC6toMBQcPdFliU6zf3qo2WyRHRlRIo42psh5F8tlzA== 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