From: Alex Williamson Date: Tue, 6 Sep 2005 22:17:04 +0000 (-0700) Subject: [PATCH] optimize writer path in time_interpolator_get_counter() X-Git-Tag: v2.6.14-rc1~705 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=486d46aefe7ded0d343e306be740edd972aff740;p=pandora-kernel.git [PATCH] optimize writer path in time_interpolator_get_counter() Christoph Lameter When using a time interpolator that is susceptible to jitter there's potentially contention over a cmpxchg used to prevent time from going backwards. This is unnecessary when the caller holds the xtime write seqlock as all readers will be blocked from returning until the write is complete. We can therefore allow writers to insert a new value and exit rather than fight with CPUs who only hold a reader lock. Signed-off-by: Alex Williamson Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed