It is currently Thu, 29 Oct 2020 13:35:59 GMT



 
Author Message
 (2/4) 2.5.59 fast reader/writer lock for gettimeofday

This is the i386  portion of lockless gettimeofday. It changes locking
of xtime_lock from rwlock to frlock.

  frlock-xtime-i386.patch
3K Download


 Sun, 17 Jul 2005 00:50:17 GMT   
 (2/4) 2.5.59 fast reader/writer lock for gettimeofday
One wonders if it wouldn't be better to put the div in
gettimeofday() outside of the lock region, see below...  It
makes the while condition even more unlikely.

-g

~snip~

++++>     unsigned long xtimensec;

- Show quoted text -

----> +               usec += (xtime.tv_nsec / 1000);
++++> +               xtimensec = xtime.tv_nsec;
++++>     usec += xtimensec / 1000;

- Show quoted text -

--
George Anzinger   geo...@mvista.com
High-res-timers:
http://sourceforge.net/projects/high-res-timers/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


 Sun, 17 Jul 2005 01:30:22 GMT   
 
   [ 2 post ] 

Similar Threads

1. (1/4) 2.5.59 fast reader/writer lock for gettimeofday

2. (4/4) 2.5.59 fast reader/writer lock for gettimeofday

3. (3/4) 2.5.59 fast reader/writer lock for gettimeofday

4. (0/4) 2.5.59 fast reader/writer lock for gettimeofday

5. fast reader/writer lock for gettimeofday 2.5.30

6. fast reader/writer lock for gettimeofday 2.5.30

7. "tee", but with fast writer, 1 slow reader and 1 fast reader

8. kernel performance issue - spins on readers/writer locks

9. how to implement readers/writer lock

10. reader-writer spin locks


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software