Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759156AbcCVOZU (ORCPT ); Tue, 22 Mar 2016 10:25:20 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:33232 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758839AbcCVOZM (ORCPT ); Tue, 22 Mar 2016 10:25:12 -0400 Date: Tue, 22 Mar 2016 19:55:07 +0530 From: Viresh Kumar To: Shilpasri G Bhat Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, ego@linux.vnet.ibm.com, linux-pm@vger.kernel.org, rjw@rjwysocki.net, shreyas@linux.vnet.ibm.com, linux-api@vger.kernel.org Subject: Re: [PATCH v13] cpufreq: powernv: Add sysfs attributes to show throttle stats Message-ID: <20160322142507.GK5272@vireshk-i7> References: <1458653229-10318-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458653229-10318-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> 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: 1164 Lines: 30 On 22-03-16, 18:57, Shilpasri G Bhat wrote: > Create sysfs attributes to export throttle information in > /sys/devices/system/cpu/cpuX/cpufreq/throttle_stats directory. The > newly added sysfs files are as follows: > > 1)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/turbo_stat > 2)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/sub-turbo_stat > 3)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/unthrottle > 4)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/powercap > 5)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/overtemp > 6)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/supply_fault > 7)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/overcurrent > 8)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/occ_reset > > Detailed explanation of each attribute is added to > Documentation/ABI/testing/sysfs-devices-system-cpu > > CC: linux-api@vger.kernel.org > Signed-off-by: Shilpasri G Bhat > --- > Changes from v12: > - Removed (void *) typecast > - Move the definition of ret inside the 'if' block Sorry for 12 versions :) Acked-by: Viresh Kumar -- viresh