Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752997AbZK3BKE (ORCPT ); Sun, 29 Nov 2009 20:10:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752747AbZK3BKD (ORCPT ); Sun, 29 Nov 2009 20:10:03 -0500 Received: from mail-yw0-f182.google.com ([209.85.211.182]:52107 "EHLO mail-yw0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752712AbZK3BKA (ORCPT ); Sun, 29 Nov 2009 20:10:00 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=B4c85cMYs7bF/AYDlG4gIfRwo32OzRqCkZioXnO9fX1ua2IRLA+0b+A9yZdbyReCS5 VjKie/wzFbOu5KbpF8N/YWy2tiuZq7Qndc5lh7jGzcDs2gu5IKYkLu4QTng1NV5Kcp4X DdFyv4lBf3YMbIsVk07C0oDsbHxNYZpH9n9IQ= Date: Sun, 29 Nov 2009 17:10:05 -0800 From: 640E9920 <640e9920@gmail.com> To: linux-pm@lists.linux-foundation.org Cc: linux-kernel@vger.kernel.org Subject: [RFC] PM_QOS api update to use handles 2/4 (cpuidle update) Message-ID: <20091130011005.GB4732@mgross-laptop> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2871 Lines: 86 --3uo+9/B/ebqu+fSQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This is patch 2 in the update to the pm_qos api to use handles. This patch updates the cpuidle dependencies on pm_qos --mgross Signed-off-by: mark gross power.state ? pr->power.state - pr->power.states : 0, - max_cstate, pm_qos_requirement(PM_QOS_CPU_DMA_LATENCY)); + max_cstate, pm_qos_request(PM_QOS_CPU_DMA_LATENCY)); =20 seq_puts(seq, "states:\n"); =20 diff --git a/drivers/cpuidle/governors/ladder.c b/drivers/cpuidle/governors= /ladder.c index a4bec3f..5f93084 100644 --- a/drivers/cpuidle/governors/ladder.c +++ b/drivers/cpuidle/governors/ladder.c @@ -67,7 +67,7 @@ static int ladder_select_state(struct cpuidle_device *dev) struct ladder_device *ldev =3D &__get_cpu_var(ladder_devices); struct ladder_device_state *last_state; int last_residency, last_idx =3D ldev->last_state_idx; - int latency_req =3D pm_qos_requirement(PM_QOS_CPU_DMA_LATENCY); + int latency_req =3D pm_qos_request(PM_QOS_CPU_DMA_LATENCY); =20 if (unlikely(!ldev)) return 0; diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/m= enu.c index 6810443..f75aec5 100644 --- a/drivers/cpuidle/governors/menu.c +++ b/drivers/cpuidle/governors/menu.c @@ -176,7 +176,7 @@ static void menu_update(struct cpuidle_device *dev); static int menu_select(struct cpuidle_device *dev) { struct menu_device *data =3D &__get_cpu_var(menu_devices); - int latency_req =3D pm_qos_requirement(PM_QOS_CPU_DMA_LATENCY); + int latency_req =3D pm_qos_request(PM_QOS_CPU_DMA_LATENCY); int i; int multiplier; =20 --=20 1.6.3.3 --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAksTG20ACgkQhK5OsmQOmSDVHQCfZTLbrs8sVCEjAc8YsLFONBo2 hKUAn0ZLQsEldBqt2T1H9iAL0494zcvU =kwD0 -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/