From patchwork Tue Feb 16 11:58:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 79662 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1GBwd6G016650 for ; Tue, 16 Feb 2010 11:58:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755366Ab0BPL6q (ORCPT ); Tue, 16 Feb 2010 06:58:46 -0500 Received: from smtp.nokia.com ([192.100.122.233]:20777 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754345Ab0BPL6q (ORCPT ); Tue, 16 Feb 2010 06:58:46 -0500 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o1GBwSZ0000366; Tue, 16 Feb 2010 13:58:43 +0200 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 16 Feb 2010 13:58:32 +0200 Received: from mgw-sa02.ext.nokia.com ([147.243.1.48]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 16 Feb 2010 13:58:32 +0200 Received: from localhost.localdomain (esdhcp04055.research.nokia.com [172.21.40.55]) by mgw-sa02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o1GBwTOt014553; Tue, 16 Feb 2010 13:58:31 +0200 From: Eduardo Valentin To: ext Kevin Hilman Cc: "\\\"Kristo Tero (Nokia-D/Tampere)\\\"" , Linux-OMAP , Eduardo Valentin Subject: [PATCHv2 1/2] OMAP3: PM: Add cpuidle C-state description information Date: Tue, 16 Feb 2010 13:58:18 +0200 Message-Id: <1266321499-11858-2-git-send-email-eduardo.valentin@nokia.com> X-Mailer: git-send-email 1.6.5.7.g9ecb2 In-Reply-To: <1266321499-11858-1-git-send-email-eduardo.valentin@nokia.com> References: <1266321499-11858-1-git-send-email-eduardo.valentin@nokia.com> X-OriginalArrivalTime: 16 Feb 2010 11:58:32.0502 (UTC) FILETIME=[5C7C3D60:01CAAEFF] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 16 Feb 2010 11:58:47 +0000 (UTC) diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index 1cfa5a6..50fe9ab 100644 --- a/arch/arm/mach-omap2/cpuidle34xx.c +++ b/arch/arm/mach-omap2/cpuidle34xx.c @@ -339,6 +339,7 @@ struct cpuidle_driver omap3_idle_driver = { */ int __init omap3_idle_init(void) { + const char *pd_states[4] = {"OFF", "RET", "INA", "ON "}; int i, count = 0; struct omap3_processor_cx *cx; struct cpuidle_state *state; @@ -367,6 +368,9 @@ int __init omap3_idle_init(void) if (cx->type == OMAP3_STATE_C1) dev->safe_state = state; sprintf(state->name, "C%d", count+1); + sprintf(state->desc, "MPU=%s NEON=%s CORE=%s", + pd_states[cx->mpu_state], pd_states[cx->mpu_state], + pd_states[cx->core_state]); count++; }