[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <78C9135A3D2ECE4B8162EBDCE82CAD7705C16329@nekter>
Date: Mon, 5 Oct 2009 23:23:01 -0400
From: "Ramkrishna Vepa" <Ramkrishna.Vepa@...erion.com>
To: "Eric Dumazet" <eric.dumazet@...il.com>
Cc: "David Miller" <davem@...emloft.net>,
"Sreenivasa Honnur" <Sreenivasa.Honnur@...erion.com>,
<netdev@...r.kernel.org>
Subject: RE: [net-next-2.6 PATCH 8/9] vxge: Acquire correct lock based on interrupt context.
> Ramkrishna Vepa a écrit :
> > [Ram] Right, but why have the additional step of saving and restoring
> > the flags while in the interrupt context?
> >
>
> It costs about the same thing than testing two times in_interrupt()
>
> pushf
> pop register
> test iflag,register
> je ...
>
>
> In the end, original code is shorter and faster.
[Ram] Got it. We'll remove this patch from the patch set.
Ram
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists