David Miller wrote:No, I hear you. I'm not focusing on cycles, but list examples of the negative effects of doing needless work for the sake of consistency: * eliminates ability to compile-out spinlocks on UP * code size increases (even if miniscule) * CPU instructions in a hot path increases (even if lost in the noise) * stack usage increases (even if miniscule) But those are just examples of the principle: don't do work you don't need to do. I also think spin_lock -> spin_lock_irqsave amounts to a slight loss of information, too: Use of spin_lock() rather than spin_lock_irqsave() potentially gives the -rt folks some additional flexibility, by advertising a different set of acceptable irq-disablement states. Is the effect huge in this specific case? No. Does that give us license to add needless code to drivers? No, again, IMO. Jeff --
| Kamalesh Babulal | [BUG] Linux 2.6.25-rc2 - Kernel Ooops while running dbench |
| Vu Pham | Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Gabriel C | Re: Linux 2.6.21-rc2 |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [GIT]: Networking |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
