Messages in this thread | | | Subject | Re: [PATCH]lock_stat: Adding "nr_contender" and "max_contender" to show the degree of contention on ticket spinlock | From | Daniel Walker <> | Date | Tue, 22 Sep 2009 06:42:16 -0700 |
| |
On Tue, 2009-09-22 at 16:10 +1000, Yang Xi wrote: > diff --git a/arch/x86/include/asm/spinlock.h b/arch/x86/include/asm/spinlock.h > index 4e77853..a2396d8 100644 > --- a/arch/x86/include/asm/spinlock.h > +++ b/arch/x86/include/asm/spinlock.h > @@ -172,6 +172,15 @@ static inline int > __ticket_spin_is_contended(raw_spinlock_t *lock) > return (((tmp >> TICKET_SHIFT) - tmp) & ((1 << TICKET_SHIFT) - 1)) > 1; > }
You patch is line wrapped .. It means it might not be easy to apply it.. You need to tell your mailer that the patch is "preformatted" . In the kernel tree look at "Documentation/email-clients.txt" for more information.
(btw, since your using git anyway you might want to look into using git-format-patch and git-send-email for submitting)
Daniel
| |