[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ACAB72A.3080802@gmail.com>
Date: Tue, 06 Oct 2009 05:19:06 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Ramkrishna Vepa <Ramkrishna.Vepa@...erion.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.
--
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