All of lore.kernel.org
 help / color / mirror / Atom feed
* [ppc] Disparity between sys_clock_getres and vdso implementation
@ 2008-01-27 14:02 ` Sripathi Kodi
  0 siblings, 0 replies; 8+ messages in thread
From: Sripathi Kodi @ 2008-01-27 14:02 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev, linux-kernel, john stultz

Hi Paul,

On PPC, I see a disparity between clock_getres implementations in the
vdso and syscall. I am using a IBM Openpower hardware and 2.6.24 kernel
with CONFIG_HIGH_RES_TIMERS=y. 

clock_getres call for CLOCK_REALTIME returns 1 millisecond. However,
when I edit arch/powerpc/kernel/vdso*/gettimeofday.S to force it to use 
sys_clock_getres, I get 1 nanosecond resolution. The code in vdso seems
to be returning some pre-defined (incorrect) variables.

Could you please let me know the reason for this? Is it something that
should be fixed in vdso?

Thanks,
Sripathi.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-02-05  9:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-27 14:02 [ppc] Disparity between sys_clock_getres and vdso implementation Sripathi Kodi
2008-01-27 14:02 ` Sripathi Kodi
2008-02-04  6:08 ` Tony Breeds
2008-02-04  6:08   ` Tony Breeds
2008-02-05  5:16 ` [PATCH] [POWERPC] Use a sensible default for clock_getres() in the vdso Tony Breeds
2008-02-05  5:16   ` Tony Breeds
2008-02-05  9:07   ` Chirag Jog
2008-02-05  9:07     ` Chirag Jog

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.