Re: [kvm-devel] [PATCH 01 of 12] Core of mmu notifiers

2008-04-22 Thread Eric Dumazet
Andrea Arcangeli a écrit : On Tue, Apr 22, 2008 at 04:56:10PM +0200, Eric Dumazet wrote: Andrea Arcangeli a écrit : + +static int mm_lock_cmp(const void *a, const void *b) +{ + cond_resched(); + if ((unsigned long)*(spinlock_t **)a + (unsigned long)*(spinlock_t **)b

Re: [kvm-devel] [PATCH 01 of 12] Core of mmu notifiers

2008-04-22 Thread Eric Dumazet
Andrea Arcangeli a écrit : + +static int mm_lock_cmp(const void *a, const void *b) +{ + cond_resched(); + if ((unsigned long)*(spinlock_t **)a + (unsigned long)*(spinlock_t **)b) + return -1; + else if (a == b) + return 0; + else +