Re: [PATCH] x86-64: Add time to vDSO

From: Andi Kleen
Date: Thu May 19 2011 - 09:53:41 EST


On Thu, May 19, 2011 at 09:24:48AM -0400, Andy Lutomirski wrote:
> The only fast implementation of time(2) we expose is through the
> vsyscall page and we want to get userspace to stop using the
> vsyscall page. So make it available through the vDSO as well.

User space can just use vgettimeofday() and only take the seconds.
Adding time() too was a mistake back then.

And BTW just for seconds alone you wouldn't need the seqlock.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/