From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752922AbcBHNEJ (ORCPT ); Mon, 8 Feb 2016 08:04:09 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36158 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752029AbcBHNDd (ORCPT ); Mon, 8 Feb 2016 08:03:33 -0500 Date: Mon, 8 Feb 2016 18:33:30 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Rafael Wysocki , Juri Lelli , Lists linaro-kernel , "linux-pm@vger.kernel.org" , Saravana Kannan , Peter Zijlstra , Michael Turquette , Steve Muckle , Vincent Guittot , Morten Rasmussen , dietmar.eggemann@arm.com, Shilpasri G Bhat , Linux Kernel Mailing List Subject: Re: [PATCH V3 09/13] cpufreq: governor: Move common sysfs tunables to cpufreq_governor.c Message-ID: <20160208130330.GH8294@vireshk> References: <5934f94cccdd9bd512b9ebdb0fd7134aedc8f1b5.1454931189.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08-02-16, 13:58, Rafael J. Wysocki wrote: > My most fundamental concern here is that attributes that don't apply > to a particular governor should not appear in sysfs at all when that > governor is in use (instead of appearing and always returning -EINVAL s/is in use/is not in use/ ?? > which is sort of silly). But who said that I have made them available always ? Sorry, I didn't understood your input. I have just moved the show/store callbacks and the struct governor_attr definition to cpufreq_governor.c. And sysfs files are created only for the ones that are valid for a governor. > That doesn't mean the common code cannot access them, though. They > still can be present in the data structure, but it may be a good idea > to set them to special values clearly meaning "invalid" then. Or are you saying that we should move all the tunables to dbs_data ? -- viresh