On Tue, 2007-10-16 at 10:35 +0200, Remy Bohmer wrote:Here's another fix for this. I compile tested for ARM (!GENERIC_TIME) , but I didn't boot test .. Could you boot test this patch? --- Move the read_seqbegin() call up in the chain so the value can be returned Signed-off-by: Daniel Walker <dwalker@mvista.com> --- include/linux/seqlock.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) Index: linux-2.6.23/include/linux/seqlock.h =================================================================== --- linux-2.6.23.orig/include/linux/seqlock.h +++ linux-2.6.23/include/linux/seqlock.h @@ -285,21 +285,20 @@ unsigned long __read_seqbegin_irqsave_ra unsigned long flags; local_irq_save(flags); - __read_seqbegin_raw(sl); return flags; } static __always_inline unsigned long __read_seqbegin_irqsave(seqlock_t *sl) { - __read_seqbegin(sl); return 0; } #define read_seqbegin_irqsave(lock, flags) \ -do { \ +({ \ flags = PICK_SEQ_OP_RET(__read_seqbegin_irqsave_raw, \ __read_seqbegin_irqsave, lock); \ -} while (0) + read_seqbegin(lock); \ +}) static __always_inline int __read_seqretry_irqrestore(seqlock_t *sl, unsigned iv, unsigned long flags) -
| Davide Libenzi | [patch 7/8] fdmap v2 - implement sys_socket2 |
| Greg Kroah-Hartman | [PATCH 018/196] coda: convert struct class_device to struct device |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| David Newall | Re: Slow DOWN, please!!! |
git: | |
| Christoph Lameter | Network latency regressions from 2.6.22 to 2.6.29 |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
