From patchwork Mon Oct 26 13:10:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 55881 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9QDQ3LB012577 for ; Mon, 26 Oct 2009 13:26:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754732AbZJZNZ5 (ORCPT ); Mon, 26 Oct 2009 09:25:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754729AbZJZNZ5 (ORCPT ); Mon, 26 Oct 2009 09:25:57 -0400 Received: from smtp.nokia.com ([192.100.122.233]:39968 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754698AbZJZNZ4 (ORCPT ); Mon, 26 Oct 2009 09:25:56 -0400 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n9QDPjhL006232 for ; Mon, 26 Oct 2009 15:25:59 +0200 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 26 Oct 2009 15:25:36 +0200 Received: from mgw-sa01.ext.nokia.com ([147.243.1.47]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 26 Oct 2009 15:25:36 +0200 Received: from localhost.localdomain (sokoban.ntc.nokia.com [172.22.144.95]) by mgw-sa01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n9QDPWI3028570 for ; Mon, 26 Oct 2009 15:25:35 +0200 From: Tero Kristo To: linux-omap@vger.kernel.org Subject: [PATCH 2/2] OMAP3: CPUidle: Fixed timer resolution Date: Mon, 26 Oct 2009 15:10:40 +0200 Message-Id: <1256562640-15242-3-git-send-email-tero.kristo@nokia.com> X-Mailer: git-send-email 1.5.4.3 In-Reply-To: <1256562640-15242-2-git-send-email-tero.kristo@nokia.com> References: <> <1256562640-15242-1-git-send-email-tero.kristo@nokia.com> <1256562640-15242-2-git-send-email-tero.kristo@nokia.com> X-OriginalArrivalTime: 26 Oct 2009 13:25:36.0404 (UTC) FILETIME=[CD7EAD40:01CA563F] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index a0d9f56..0ac3b63 100644 --- a/arch/arm/mach-omap2/cpuidle34xx.c +++ b/arch/arm/mach-omap2/cpuidle34xx.c @@ -137,7 +137,7 @@ return_sleep_time: local_irq_enable(); local_fiq_enable(); - return (u32)timespec_to_ns(&ts_idle)/1000; + return ts_idle.tv_nsec / NSEC_PER_USEC + ts_idle.tv_sec * USEC_PER_SEC; } /**