On Wed, 26 Mar 2008, Pavel Machek wrote:I do agree that it's ugly, but I think the ugliness is more serious than that. What I think we should do is to make NR_IRQS no longer be a compile-time constant, but instead just do something like unsigned int NR_IRQS __read_mostly; and then just set it early in the boot sequence depending on the real CPU numbers etc. I realize that this will require some changes to a few arrays that are statically allocated and depend on NR_IRQ's (notably "irq_desc"), but don't you guys think that this would be a cleaner thing? [ I suspect that irq_desc[] itself could quite reasonably be a rather much smaller __read_mostly hash-table of dynamically allocated entries - the thing would be only modified at boot, so it should cache beautifully even across hundreds of CPU's ] Whatever. I'm not opposed to this whole static thing, but I do wonder if it's worth doing that way. There *may* be performance reasons for doing it the way we're doing it, but quite frankly, I think the #define is mostly purely historical, from when it was just a fixed number (originally 16!) and it made sense to think of it as a small static array. Linus --
| Andrew Morton | git trees which are not yet in linux-next |
| Chuck Ebbert | Why do so many machines need "noapic"? |
| Alan Cox | Re: [PATCH][RFC] 4K stacks default, not a debug thing any more...? |
| Willy Tarreau | Re: [patch] CFS scheduler, -v19 |
git: | |
| Jeff Garzik | Re: Using GIT to store /etc (Or: How to make GIT store all file permission bits) |
| Matthieu Moy | git push to a non-bare repository |
| David Symonds | Re: [PATCH] Change 'Deltifying objects' to 'Delta compressing objects' |
| Johannes Sixt | [PATCH 11/40] Windows: Handle absolute paths in safe_create_leading_directories(). |
| David B. | find -exec {} help |
| Theo de Raadt | n2k8 network hackathon |
| Girish Venkatachalam | Re: RAMdisk, not for boot, how? |
| Richard Stallman | Real men don't attack straw men |
| Ian Jackson | *** READ THIS BEFORE POSTING *** |
| Hui-huang Huang | Help!!! |
| James Henrickson | Re: Splitting comp.os.linux |
| Anselm Lingnau | File creation date in UNIX (was: Re: VMS) |
