From: Sergei Organov <osv@javad.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Andrew Bird <ajb@spheresystems.co.uk>, linux-kernel@vger.kernel.org
Subject: Re: Spinlock debugging
Date: Tue, 12 Sep 2006 17:31:20 +0400 [thread overview]
Message-ID: <87ac55yzx3.fsf@javad.com> (raw)
In-Reply-To: <1158068628.6780.9.camel@localhost.localdomain> (Alan Cox's message of "Tue, 12 Sep 2006 14:43:48 +0100")
Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
[...]
> So all you need in your IRQ handler is
>
> if (tty_insert_flip_string(tty, buf, size))
> tty_flip_buffer_push(tty);
What is the purpose of the "if" in the above code? is push with no data
in the buffer dangerous? Or is it just optimization of
almost-never-taken path? ;)
-- Sergei.
next prev parent reply other threads:[~2006-09-12 13:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-11 15:32 Spinlock debugging Andrew Bird (Sphere Systems)
2006-09-11 16:36 ` Alan Cox
2006-09-11 16:38 ` Andrew Bird
2006-09-11 17:24 ` Alan Cox
2006-09-12 7:47 ` Andrew Bird
2006-09-12 13:43 ` Alan Cox
2006-09-12 13:31 ` Sergei Organov [this message]
2006-09-12 14:04 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ac55yzx3.fsf@javad.com \
--to=osv@javad.com \
--cc=ajb@spheresystems.co.uk \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.