From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Muckle Subject: Re: [PATCH V2] cpufreq: Disallow ->resolve_freq() for drivers providing ->target_index() Date: Thu, 21 Jul 2016 16:45:58 -0700 Message-ID: <20160721234558.GX27987@graphite.smuckle.net> References: <065301260510fbca81f5481b27b0de956073068a.1469137133.git.viresh.kumar@linaro.org> <1490801.bHMYROVPDC@vostro.rjw.lan> <20160721232228.GT27987@graphite.smuckle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Rafael J. Wysocki" Cc: Steve Muckle , "Rafael J. Wysocki" , Viresh Kumar , Lists linaro-kernel , Linux PM , Linux Kernel Mailing List , Peter Zijlstra , Ingo Molnar , Vincent Guittot , Morten Rasmussen , Dietmar Eggemann , Juri Lelli , Patrick Bellasi List-Id: linux-pm@vger.kernel.org On Fri, Jul 22, 2016 at 01:32:00AM +0200, Rafael J. Wysocki wrote: > On Fri, Jul 22, 2016 at 1:22 AM, Steve Muckle wrote: > > On Fri, Jul 22, 2016 at 01:22:22AM +0200, Rafael J. Wysocki wrote: > >> OK, applied. > > > > FWIW I do have a concern on this patch, I think it adds unnecessary > > overhead. > > It isn't unnecessary. It prevents an otherwise possible kernel crash > from happening. The logic may not be unecessary, but the overhead is. The crash could be prevented in a way that doesn't require repeatedly checking a pointer that doesn't change.