Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lm32: optimize irqflags.h for size arch_local_irq_disable and arch_local_irq_save are both not optimal regarding code size. This patch reduces their size by removing unnecessary instructions. Since those functions are used inline throughout the whole kernel this patch reduces the size of a typical kernel image by 16k. We could eliminate one further instruction in either arch_local_irq_restore or arch_local_irq_save by assuming that only values which are returned by arch_local_irq_save are passed to arch_local_irq_restore. This should be a valid assumption, but the extra instruction is left in for now to be on the save side. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
- Loading branch information