Hi Karsten, On Saturday 06 August 2005 18:14, Karsten Wiese wrote: > From: Karsten Wiese <[email protected]> > > IRQ_PER_CPU is not used by all architectures. > To avoid dead code generation in __do_IRQ() > this patch introduces the macro ARCH_HAS_IRQ_PER_CPU. > > ARCH_HAS_IRQ_PER_CPU is defined by architectures using > IRQ_PER_CPU in their > include/asm_ARCH/irq.h > file. Why not the other way around? Just define IRQ_PER_CPU to 0 on architectures not needing it and add a FAT comment there, that this disables it. Or make it a config option. Then just leave the code as is and let GCC optimize the dead code away without any changes in the C file. It works, I just checked it ;-) Regards Ingo Oeser
Attachment:
pgpzpHhsm4VvF.pgp
Description: PGP signature
- Follow-Ups:
- Re: [PATCH] ARCH_HAS_IRQ_PER_CPU avoids dead code in __do_IRQ()
- From: Karsten Wiese <[email protected]>
- Re: [PATCH] ARCH_HAS_IRQ_PER_CPU avoids dead code in __do_IRQ()
- References:
- [PATCH] ARCH_HAS_IRQ_PER_CPU avoids dead code in __do_IRQ()
- From: Karsten Wiese <[email protected]>
- [PATCH] ARCH_HAS_IRQ_PER_CPU avoids dead code in __do_IRQ()
- Prev by Date: RE: As of 2.6.13-rc1 Fusion-MPT very slow
- Next by Date: Re: Determining if the current processor is Hyperthreaded
- Previous by thread: [PATCH] ARCH_HAS_IRQ_PER_CPU avoids dead code in __do_IRQ()
- Next by thread: Re: [PATCH] ARCH_HAS_IRQ_PER_CPU avoids dead code in __do_IRQ()
- Index(es):