Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423407AbbEOCsu (ORCPT ); Thu, 14 May 2015 22:48:50 -0400 Received: from mail-ig0-f170.google.com ([209.85.213.170]:36058 "EHLO mail-ig0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423235AbbEOCss (ORCPT ); Thu, 14 May 2015 22:48:48 -0400 Date: Fri, 15 May 2015 08:18:43 +0530 From: Viresh Kumar To: Ruchi Kandoi Cc: "Rafael J. Wysocki" , Ingo Molnar , Peter Zijlstra , Andrew Morton , Oleg Nesterov , "Kirill A. Shutemov" , Vladimir Davydov , Heinrich Schuchardt , Thomas Gleixner , Kees Cook , Konstantin Khlebnikov , Davidlohr Bueso , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] cpufreq_stats: Adds sysfs file /sys/devices/system/cpu/cpufreq/current_in_state Message-ID: <20150515024843.GE6348@linux> References: <1431648770-7404-1-git-send-email-kandoiruchi@google.com> <1431648770-7404-2-git-send-email-kandoiruchi@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431648770-7404-2-git-send-email-kandoiruchi@google.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 966 Lines: 24 I am not replying for concept here, as sched maintainers are in a better position for that, but a nit below.. On 14-05-15, 17:12, Ruchi Kandoi wrote: > Adds the sysfs file for userspace to initialize the active current > values for all the cores at each of the frequencies. > > The format for storing the values is as follows: > echo "CPU:= =,CPU: > ..." > /sys/devices/system/cpu/cpufreq/current_in_state Why this file? And not /sys/devices/system/cpu/cpuX/cpufreq/stats/current_in_state ? That way you don't have to replicate the same information for all CPUs, as the stats folder can be shared by multiple CPUs (which share their clock/voltage rails).. -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/