From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from yow.seanm.ca (toronto-hs-216-138-233-67.s-ip.magma.ca [216.138.233.67]) by ozlabs.org (Postfix) with SMTP id BC7B3DDDED for ; Sat, 9 Feb 2008 05:16:59 +1100 (EST) Message-ID: <47AC9C99.2000603@pikatech.com> Date: Fri, 08 Feb 2008 13:16:57 -0500 From: Sean MacLennan MIME-Version: 1.0 To: Tony Breeds Subject: Re: [PATCH] Fix powerpc vdso clock_getres(). References: <20080207064750.GG6887@bakeyournoodle.com> In-Reply-To: <20080207064750.GG6887@bakeyournoodle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: LinuxPPC-dev , Thomas Gleixner , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Tony Breeds wrote: > Since implementing highres timers on powerpc the clock_getres syscall > has reported different resolutions due to the vdso using the a low res > value. In the patch d7f71674ad7c3c4467e48f6ab9e85516dae2720 > ([POWERPC] Use a sensible default for clock_getres() in the VDSO), the > powerpc vdso was updated to use the correct value. > > This fix doesn't work on older compilers. Below is a fix for powerpc, > that introduces a new (generic) #define MONOTONIC_RES_NSEC which is > equal to the 64 value stored in KTIME_MONOTONIC_RES. > Just a confirmation that this patch fixed my compile issue. And I was using gcc-4.0.0. Thanks, Sean