Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4076465ybl; Mon, 26 Aug 2019 05:14:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyOttAN4fskpLZazJne3IX8Ph7MxNFV9HTbn07paX5lTvdRhx11phP5rqX33ZoNKwZJApS X-Received: by 2002:a17:902:7c12:: with SMTP id x18mr6420178pll.123.1566821643939; Mon, 26 Aug 2019 05:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566821643; cv=none; d=google.com; s=arc-20160816; b=YEgyIKKM6yNdKkxWYGuSm+XmakH9j525Bras5hSNCgP2GUa/+EsTuDmT056bVaWJ9x CT9CjAXhXAGGfP6KhSVJKpZG4ww/NBvxP14Ts5BOK89QywDcQlUd749kgCBw3sHMc6hh YKfPeUt7noPD7n5vzrsno0v8gyvaTneRLa6cH5b37aTfOw8O/SIcpKtZR/bN1QjgqzH7 ULOPJnRSiuPNg7BpDMi/wJW+N6pZhYPv790R/IcwFNPGfYeshchDFXN3+rcEyBEPSVxM JJAqH8+Xy0JrLeGUFu9nEXi2NWbDYLuTYS934cUMKTsi1mmSwNEvIQrrBTMTfSaQAQwF QWyw== 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=UeL30TP7BRRHaxKFX7O03AkvXqBlqGLZlPFl1nNTq54=; b=ZzaoYv5TpTxZOSiH76BwReMYkJPby1802hAnxfXUwV6yh2nLZIOc13AMY6OfSgOnkB CpgSs4vVex6xE/+7Sie2tQYc236xNrDzPbfwm3dFmoWaz836d7S1xqOGQTTjljYVBqAD jBmdU0IjwCuH5BJkkvz07eVJaDDQlsv560Zvp5kIPR4ouA/TYmNv9JnLN1vOJUTE/msM +GzD6PQrxgGWDBB/hmw+QTz9DlXu878Vc2J7onvO0nQ2ZDx048NygYMKWJf/uqpglbKV LZ3Oib+iY1VRJ41s7OUg9oBr66NROOc3RguH/1z84D42swG/akWwMFw2NwoBaZOIbPD/ bX2g== 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 d8si9489551pla.206.2019.08.26.05.13.48; Mon, 26 Aug 2019 05:14:03 -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 S1731631AbfHZMM7 (ORCPT + 99 others); Mon, 26 Aug 2019 08:12:59 -0400 Received: from foss.arm.com ([217.140.110.172]:56720 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730841AbfHZMM7 (ORCPT ); Mon, 26 Aug 2019 08:12:59 -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 CEA3728; Mon, 26 Aug 2019 05:12:58 -0700 (PDT) Received: from [192.168.0.9] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B6E933F718; Mon, 26 Aug 2019 05:12:57 -0700 (PDT) Subject: Re: [PATCH] sched/cpufreq: Align trace event behavior of fast switching To: Peter Zijlstra Cc: "Rafael J. Wysocki" , Douglas RAILLARD , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org, mingo@redhat.com References: <20190807153340.11516-1-douglas.raillard@arm.com> <3316959.EEulJYEQYJ@kreacher> <20190826094058.GP2369@hirez.programming.kicks-ass.net> <20190826112406.GR2369@hirez.programming.kicks-ass.net> From: Dietmar Eggemann Message-ID: Date: Mon, 26 Aug 2019 14:12:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190826112406.GR2369@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/08/2019 13:24, Peter Zijlstra wrote: > On Mon, Aug 26, 2019 at 11:51:17AM +0200, Dietmar Eggemann wrote: > >> Not sure about the extra 'if trace_cpu_frequency_enabled()' but I guess >> it doesn't hurt. > > Without that you do that for_each_cpu() iteration unconditionally, even > if the tracepoint is disabled. Makes sense, I'm wondering if we want this in cpufreq_notify_transition() CPUFREQ_POSTCHANGE for the non-fast-switching drivers as well.