On Thu, 2007-07-12 at 23:59 -0400, Gregory Haskins wrote:
> 2.6.22 changed the vsyscall mechanism to store a more cache-thrash
> friendly version of the gtod data.  The original gtod cache code used an
> entire struct clock + structure-copy, whereas the new code uses a
> pseudo/shadow version + explicit-copy. 
> 
> clock.cycle_accumulated was added to RT prior to 2.6.22 so the vsyscall
> code must also be updated for the port to 22.
> 
> Signed-off-by: Gregory Haskins <[EMAIL PROTECTED]>
> --- 
> 
>  vsyscall.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- linux-2.6.22.orig/arch/x86_64/kernel/vsyscall.c
> +++ linux-2.6.22/arch/x86_64/kernel/vsyscall.c
> @@ -90,6 +90,7 @@ void update_vsyscall(struct timespec *wa
>         /* copy vsyscall data */
>         vsyscall_gtod_data.clock.vread = clock->vread;
>         vsyscall_gtod_data.clock.cycle_last = clock->cycle_last;
> +       vsyscall_gtod_data.clock.cycle_accumulated =
> clock->cycle_accumulated;
>         vsyscall_gtod_data.clock.mask = clock->mask;
>         vsyscall_gtod_data.clock.mult = clock->mult;
>         vsyscall_gtod_data.clock.shift = clock->shift;

It looks like your patch might be line wrapped ?

Also you need to CC John Stultz, who I've added ..

Daniel

-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to