public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Duplicate vsyscall/vdso gettimeofday implementations on x86_64
@ 2009-07-17 22:02 john stultz
  2009-07-17 22:12 ` Andi Kleen
  0 siblings, 1 reply; 7+ messages in thread
From: john stultz @ 2009-07-17 22:02 UTC (permalink / raw)
  To: Andi Kleen, Ingo Molnar, Thomas Gleixner; +Cc: lkml

Hey Andi, Ingo, Thomas,
	I ran across an oddity recently in the x86_64 vsyscall code.
Specifically I was looking at the vsyscall clock_gettime()
implementation in arch/x86/vdso/vclock_gettime.c, and noticed there is a
vsyscall gettimeofday implementation there too! This seems to duplicate
the do_vgettimeofday implementation in arch/x86/kernel/vsyscall_64.c

I think the implementation in vclock_gettime.c is nice, as it mostly
reuses the clock_gettime() code, but I don't think it actually gets
called.

I'm a little worried about just switching it out, and cleaning it up, as
I don't know enough yet about how the vgettimeofday is called from glibc
(I thought it was a static "jump to this page and run" mapping).

Andi: You wrote the vclock_gettime.c, do you have any pointers about
where you were going with this? Is there a reason you didn't clean it up
when you implemented it originally?

thanks
-john



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

end of thread, other threads:[~2009-07-19  7:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-17 22:02 Duplicate vsyscall/vdso gettimeofday implementations on x86_64 john stultz
2009-07-17 22:12 ` Andi Kleen
2009-07-17 22:54   ` john stultz
2009-07-18  6:07     ` Andi Kleen
2009-07-18  6:50       ` Andi Kleen
2009-07-18 22:03       ` john stultz
2009-07-19  7:22         ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox