login
Header Space

 
 

Re: [PATCH] Improvev netconsole support for RTL8139 NIC driver

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <yang.shi@...>, <netdev@...>, <linux-kernel@...>
Date: Tuesday, March 25, 2008 - 11:14 pm

David Miller wrote:

Replacing spin_lock() [current 8139too.c] with spin_lock_irqsave() 
results in a larger interrupt handler... more CPU instructions for the 
same result.



The entire spin_lock() apparatus in the interrupt handler disappears 
nicely on uniprocessor machines.

Plus, you are not competing with any other interrupts other than your 
own, which is the only major class of problems where spin_lock_irqsave() 
in interrupt handler is really needed (PS/2 kbd + mouse is an example).

Or more simply, it's not needed, so nothing is gained by doing 
additional work in the hot path for the sake of consistency.

	Jeff


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Improvev netconsole support for RTL8139 NIC driver, Jeff Garzik, (Tue Mar 25, 11:14 pm)
speck-geostationary