From patchwork Tue Nov 26 04:12:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 21763 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5603823FDB for ; Tue, 26 Nov 2013 04:12:54 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id f11sf22873045qae.3 for ; Mon, 25 Nov 2013 20:12:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=QinXvrZz4uP7nKgGnP6WLFfOsJcuDS3x1VP4LW4J89A=; b=dWH+utg5tw6tS3Jy2OIO13a40L5TGLBbKpvy5tXgdORfpp+YccVq63u7mLFf0VniG8 22HQvkdmh2eYBrPbT6fwd5tu9jUr2ojL6638tEiXdu9t/PJTKoeiDnqJwxhuqk7+Rxbs 5BRU3/dJgDgUphF9CBpTyKbxcHoGNDJBPdDpWAsB3DyJroZXRlVQTIU1h68TZpsL1y7j gnTXEYN9b6mJ9lcBYMbsNQrC4uOybRKtKL/L8qXasYm+IMdyDzn7n8D9VH7GXGV4rQ+W LQ37H5J43/2yo2sXU+lda3U5bFuzJmq9O2dPxDnQwA0+BkFXueDBvUTj/vwRmJVD0eb8 T8Ow== X-Gm-Message-State: ALoCoQn/W1b21z4duFmoKaFZ4EmuFeMPPiHFqGQpFpn7JXx9tKTrk7WiMef4mAlCrg9olc3P0+YA X-Received: by 10.58.94.77 with SMTP id da13mr10359267veb.1.1385439173475; Mon, 25 Nov 2013 20:12:53 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.37.72 with SMTP id w8ls2233252qej.59.gmail; Mon, 25 Nov 2013 20:12:53 -0800 (PST) X-Received: by 10.220.192.198 with SMTP id dr6mr8715763vcb.19.1385439173336; Mon, 25 Nov 2013 20:12:53 -0800 (PST) Received: from mail-vb0-f51.google.com (mail-vb0-f51.google.com [209.85.212.51]) by mx.google.com with ESMTPS id f10si18854838vck.95.2013.11.25.20.12.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 20:12:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.51 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.51; Received: by mail-vb0-f51.google.com with SMTP id m10so3554959vbh.10 for ; Mon, 25 Nov 2013 20:12:53 -0800 (PST) X-Received: by 10.58.133.77 with SMTP id pa13mr5596057veb.21.1385439173259; Mon, 25 Nov 2013 20:12:53 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp183183vcz; Mon, 25 Nov 2013 20:12:52 -0800 (PST) X-Received: by 10.224.87.198 with SMTP id x6mr52480443qal.61.1385439172802; Mon, 25 Nov 2013 20:12:52 -0800 (PST) Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) by mx.google.com with ESMTPS id f4si9878553qai.148.2013.11.25.20.12.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 20:12:52 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.51 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.216.51; Received: by mail-qa0-f51.google.com with SMTP id o15so8303267qap.3 for ; Mon, 25 Nov 2013 20:12:52 -0800 (PST) X-Received: by 10.49.12.43 with SMTP id v11mr51985808qeb.50.1385439172563; Mon, 25 Nov 2013 20:12:52 -0800 (PST) Received: from [127.0.0.1] (git.linaro.org. [54.235.93.228]) by mx.google.com with ESMTPSA id b4sm15543338qai.7.2013.11.25.20.12.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 20:12:51 -0800 (PST) Message-ID: <52941FBB.7070603@linaro.org> Date: Tue, 26 Nov 2013 09:42:43 +0530 From: viresh kumar User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: rjw@rjwysocki.net CC: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, nm@ti.com, swarren@wwwdotorg.org, kgene.kim@samsung.com, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, jinchoi@broadcom.com, tianyu.lan@intel.com, sebastian.capella@linaro.org, jhbird.choi@samsung.com, Viresh Kumar Subject: Re: [PATCH V3 1/6] cpufreq: suspend governors on system suspend/hibernate References: <55cc3fbf9c553d669629e8ba98eef2b0ef33aaad.1385374822.git.viresh.kumar@linaro.org> In-Reply-To: <55cc3fbf9c553d669629e8ba98eef2b0ef33aaad.1385374822.git.viresh.kumar@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.51 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On Monday 25 November 2013 07:41 PM, Viresh Kumar wrote: > diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h > index dc196bb..6d93f91 100644 > --- a/include/linux/cpufreq.h > +++ b/include/linux/cpufreq.h > @@ -255,6 +255,9 @@ struct cpufreq_driver { > int cpufreq_register_driver(struct cpufreq_driver *driver_data); > int cpufreq_unregister_driver(struct cpufreq_driver *driver_data); > > +void cpufreq_suspend(void); > +void cpufreq_resume(void); > + > const char *cpufreq_get_current_driver(void); > > static inline void cpufreq_verify_within_limits(struct cpufreq_policy *policy, A minor fix here to get kernel compiled without cpufreq support enabled: diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 8d8b2f4..d40809d 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -259,9 +259,6 @@ struct cpufreq_driver { int cpufreq_register_driver(struct cpufreq_driver *driver_data); int cpufreq_unregister_driver(struct cpufreq_driver *driver_data); -void cpufreq_suspend(void); -void cpufreq_resume(void); - const char *cpufreq_get_current_driver(void); static inline void cpufreq_verify_within_limits(struct cpufreq_policy *policy, @@ -287,6 +284,14 @@ cpufreq_verify_within_cpu_limits(struct cpufreq_policy *policy) policy->cpuinfo.max_freq); } +#ifdef CONFIG_CPU_FREQ +void cpufreq_suspend(void); +void cpufreq_resume(void); +#elif +static inline void cpufreq_suspend(void) {} +static inline void cpufreq_resume(void) {} +#endif + /********************************************************************* * CPUFREQ NOTIFIER INTERFACE * *********************************************************************/