From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x229.google.com (mail-pf0-x229.google.com [IPv6:2607:f8b0:400e:c00::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3qlkrk3H88zDq5y for ; Thu, 14 Apr 2016 12:19:32 +1000 (AEST) Received: by mail-pf0-x229.google.com with SMTP id 184so41117164pff.0 for ; Wed, 13 Apr 2016 19:19:32 -0700 (PDT) Date: Thu, 14 Apr 2016 07:49:27 +0530 From: Viresh Kumar To: Akshay Adiga Cc: rjw@rjwysocki.net, linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, ego@linux.vnet.ibm.com Subject: Re: [PATCH 2/2] cpufreq: powernv: Ramp-down global pstate slower than local-pstate Message-ID: <20160414021927.GK19433@vireshk-i7> References: <1460484386-28389-1-git-send-email-akshay.adiga@linux.vnet.ibm.com> <1460484386-28389-3-git-send-email-akshay.adiga@linux.vnet.ibm.com> <20160413050310.GE19433@vireshk-i7> <570E889F.2010401@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <570E889F.2010401@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 13-04-16, 23:27, Akshay Adiga wrote: > On 04/13/2016 10:33 AM, Viresh Kumar wrote: > >>+void gpstate_timer_handler(unsigned long data) > >>+{ > >>+ struct cpufreq_policy *policy = (struct cpufreq_policy *) data; > >no need to cast. > > May be i need a cast here, because data is unsigned long ( unlike other places where its void *). > On building without cast, it throws me a warning. My bad, yeah :( > >>+ if (freq_data.gpstate_id != freq_data.pstate_id) > >>+ ret = queue_gpstate_timer(gpstates); > >ret not used. > > Should i make it void instead of returning int?, as i cannot do much even if it fails, except for notifying. Sure. -- viresh