From patchwork Tue Feb 16 11:58:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 79663 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 o1GBwt7A016720 for ; Tue, 16 Feb 2010 11:58:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755406Ab0BPL6y (ORCPT ); Tue, 16 Feb 2010 06:58:54 -0500 Received: from smtp.nokia.com ([192.100.105.134]:31062 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754345Ab0BPL6y (ORCPT ); Tue, 16 Feb 2010 06:58:54 -0500 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o1GBvgJC001948; Tue, 16 Feb 2010 05:58:51 -0600 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 16 Feb 2010 13:58:47 +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:33 +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 o1GBwTOu014553; Tue, 16 Feb 2010 13:58:32 +0200 From: Eduardo Valentin To: ext Kevin Hilman Cc: "\\\"Kristo Tero (Nokia-D/Tampere)\\\"" , Linux-OMAP , Eduardo Valentin Subject: [PATCHv2 2/2] OMAP3: PM: Consistently report cpuidle C-state's names Date: Tue, 16 Feb 2010 13:58:19 +0200 Message-Id: <1266321499-11858-3-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:33.0845 (UTC) FILETIME=[5D492A50: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:55 +0000 (UTC) diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index 50fe9ab..7ab9992 100644 --- a/arch/arm/mach-omap2/cpuidle34xx.c +++ b/arch/arm/mach-omap2/cpuidle34xx.c @@ -367,7 +367,7 @@ int __init omap3_idle_init(void) omap3_enter_idle_bm : omap3_enter_idle; if (cx->type == OMAP3_STATE_C1) dev->safe_state = state; - sprintf(state->name, "C%d", count+1); + sprintf(state->name, "C%d", cx->type + 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]);