lkml.org 
[lkml]   [2008]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 2/2] introduce vdso on s390
On Fri, Oct 17, 2008 at 05:34:36PM +0200, Bastian Blank wrote:
> On Wed, Oct 15, 2008 at 07:45:08PM +0200, Martin Schwidefsky wrote:
> > +void update_vsyscall(struct timespec *wall_time, struct clocksource *clock)
> > +{
> > + if (clock != &clocksource_tod)
> > + return;
> > +
> > + /* Make userspace gettimeofday spin until we're done. */
> > + ++vdso_data->tb_update_count;
> > + smp_mb();
> > + vdso_data->xtime_tod_stamp = clock->cycle_last;
> > + vdso_data->xtime_clock_sec = xtime.tv_sec;
> > + vdso_data->xtime_clock_nsec = xtime.tv_nsec;
> > + vdso_data->wtom_clock_sec = wall_to_monotonic.tv_sec;
> > + vdso_data->wtom_clock_nsec = wall_to_monotonic.tv_nsec;
> > + smp_wmb();
>
> Different barriers?

Doesn't matter. They are all the same anyway on s390. But I changed it to
smp_wmb instead.

> > + ++(vdso_data->tb_update_count);
>
> Why ++(...)?

Removed the braces.


\
 
 \ /
  Last update: 2008-10-20 15:09    [W:0.042 / U:1.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site