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, evenif the tracepoint is disabled.