From: "Rafael J. Wysocki" Subject: Re: v3.13.5 intel_pstate: cpufreq: __cpufreq_add_dev: ->get() failed Date: Wed, 12 Mar 2014 12:09:41 +0100 Message-ID: <1484350.k4sryJixDI@vostro.rjw.lan> References: <531F6D2D.7070306@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: Sender: cpufreq-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Viresh Kumar Cc: Dirk Brandewie , Patrik Lundquist , "cpufreq@vger.kernel.org" , "Srivatsa S. Bhat" On Wednesday, March 12, 2014 01:21:33 PM Viresh Kumar wrote: > On 12 March 2014 04:08, Dirk Brandewie wrote: > > Zero frequency the core is not running. I said it is a valid answer not > > that I should be returning it. There is nothing in the docs or headers that > > I can > > find that says Zero is a failure value. > > In this case cpufreq_add_dev() shouldn't have been called for this CPU > then. And so its obviously better to return error in such cases. Why isn't it documented, then? In fact, zero returned by ->get() has no defined meaning as I said before. The point, however, is that at least intel_pstate could return 0 *before* your changes and you made up that whole "0 can't be returned from ->get()" argument. It *could* be returned and it *was* returned sometimes. That's what the report is about. -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.