Re: How is Code in do_sys_settimeofday() safe in case of SMP and Nest Kernel Path?

Samuel Tardieu
2006-10-02T10:20:17Z

>>>>> "Christoph" == Christoph Lameter <clameter@sgi.com> writes:

Christoph> I really hate adding overhead to gettimeofday() and we
Christoph> would have to take the seqlock in all places when we
Christoph> reference tz. Maybe we can tolerate the resulting race?

Agreed. In some applications, gettimeofday() is called an awfully lot
of times. And the only plausible case where settimeofday() is called
after boot is on a multi-core laptop during a traval accross different
timezones, where it is unlikely that time-and-DST-sensitive
applications would be running.

Sam
--
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/