Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751752AbcDRKPL (ORCPT ); Mon, 18 Apr 2016 06:15:11 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33782 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751278AbcDRKPJ (ORCPT ); Mon, 18 Apr 2016 06:15:09 -0400 Date: Mon, 18 Apr 2016 15:45:05 +0530 From: Viresh Kumar To: Akshay Adiga Cc: rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, ego@linux.vnet.ibm.com, Shilpasri G Bhat Subject: Re: [PATCH v2 1/2] cpufreq: powernv: Remove flag use-case of policy->driver_data Message-ID: <20160418101505.GA2322@vireshk-i7> References: <1460701739-31549-1-git-send-email-akshay.adiga@linux.vnet.ibm.com> <1460701739-31549-2-git-send-email-akshay.adiga@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1460701739-31549-2-git-send-email-akshay.adiga@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: 762 Lines: 19 On 15-04-16, 11:58, Akshay Adiga wrote: > From: Shilpasri G Bhat > > commit 1b0289848d5d ("cpufreq: powernv: Add sysfs attributes to show > throttle stats") used policy->driver_data as a flag for one-time creation > of throttle sysfs files. Instead of this use 'kernfs_find_and_get()' to > check if the attribute already exists. This is required as > policy->driver_data is used for other purposes in the later patch. > > Signed-off-by: Shilpasri G Bhat > Signed-off-by: Akshay Adiga > --- > drivers/cpufreq/powernv-cpufreq.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) Reviewed-by: Viresh Kumar -- viresh