From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by ozlabs.org (Postfix) with ESMTP id DDD60DDE2F for ; Sat, 16 Feb 2008 23:44:30 +1100 (EST) Received: by an-out-0708.google.com with SMTP id c37so693299anc.78 for ; Sat, 16 Feb 2008 04:44:29 -0800 (PST) Message-ID: Date: Sat, 16 Feb 2008 13:44:29 +0100 From: "Leon Woestenberg" To: "Scott Wood" Subject: Re: High resolution timer support in 2.6.24+ for MPC831x? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <47B4A9D7.3030100@freescale.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hello, On Feb 15, 2008 9:49 PM, Leon Woestenberg wrote: > On Thu, Feb 14, 2008 at 9:51 PM, Scott Wood wrote: > > Leon Woestenberg wrote: > > > My platform is a MPC8313E-RDB, and I suspect no high res clock source > > > implementation exists for it in 2.6.24, because > > > clock_getres(CLOCK_REALTIME,) gives me 1/HZ. > > > I found that 2.6.24 needs the patch "[PATCH] Fix powerpc vdso clock_getres()" posted February 8th on linuxppc-dev (which I missed, sorry for the noise). That seems to fix it in a quick test: root@mpc8313e-rdb:~$ /timers Clock resolution (clockid 0): 0.000000001 Clock resolution (clockid 1): 0.000000001 Regards, -- Leon