[PATCH] x86_64 : vsyscall_gtod_data diet and vgettimeofday() fix

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Wednesday, March 28, 2007 - 10:33 am

Hi Andrew

This patch should be applied after x86_64 : fix vtime() vsyscall

Thank you

[PATCH] x86_64 : vsyscall_gtod_data diet and vgettimeofday() fix

Current vsyscall_gtod_data is large (3 or 4 cache lines dirtied at timer 
interrupt). We can shrink it to exactly 64 bytes (1 cache line on AMD64)

Instead of copying a whole struct clocksource, we copy only needed fields.

I deleted an unused field : offset_base

This patch fixes one oddity in vgettimeofday(): It can returns a timeval with 
tv_usec = 1000000. Maybe not a bug, but why not doing the right thing ?

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86_64 : vsyscall_gtod_data diet and vgettimeofday ..., Eric Dumazet, (Wed Mar 28, 10:33 am)