Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753126AbcKHELB (ORCPT ); Mon, 7 Nov 2016 23:11:01 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:35215 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751647AbcKHEK6 (ORCPT ); Mon, 7 Nov 2016 23:10:58 -0500 Date: Tue, 8 Nov 2016 09:39:40 +0530 From: Viresh Kumar To: Markus Mayer Cc: "Rafael J . Wysocki" , Power Management List , Broadcom Kernel List , Linux Kernel Mailing List , Markus Mayer Subject: Re: [PATCH v3] cpufreq: stats: clear statistics Message-ID: <20161108040940.GJ21030@vireshk-i7> References: <20161107180223.44536-1-code@mmayer.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161107180223.44536-1-code@mmayer.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1143 Lines: 32 On 07-11-16, 10:02, Markus Mayer wrote: > From: Markus Mayer > > Allow CPUfreq statistics to be cleared by writing anything to > /sys/.../cpufreq/stats/reset. > > Signed-off-by: Markus Mayer > --- > > Changes since v2: > - changed name of write-only macro to cpufreq_freq_attr_wo() > - removed "perm" parameter from write-only macro > - squashed the two separate commits into a single one > > Changes since v1: > - add new cpufreq_freq_attr_wr_perm() macro for write-only > attributes (because this is a separate commit, this patch has > turned into a series) > - remove the Kconfig option, compiling the code unconditionally > - remove show_reset() > - cpufreq_stats_clear_table() takes a struct cpufreq_stats * as > argument rather than a struct cpufreq_policy * > > Documentation/cpu-freq/cpufreq-stats.txt | 6 ++++++ > drivers/cpufreq/cpufreq_stats.c | 22 ++++++++++++++++++++++ > include/linux/cpufreq.h | 4 ++++ > 3 files changed, 32 insertions(+) Acked-by: Viresh Kumar -- viresh