diff options
author | Andreas Mohr <andi@rhlx01.fht-esslingen.de> | 2006-06-23 11:04:17 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 16:42:56 +0200 |
commit | 87af2ffd4ccd0e6a2ff316fd008a9bedb4a4cb66 (patch) | |
tree | 4cd80cf123aa220e5c1c3c534bf09fa8d001ad28 /include/asm-i386 | |
parent | [PATCH] arch/i386/kernel/apic.c: make modern_apic() static (diff) | |
download | linux-87af2ffd4ccd0e6a2ff316fd008a9bedb4a4cb66.tar.xz linux-87af2ffd4ccd0e6a2ff316fd008a9bedb4a4cb66.zip |
[PATCH] i386 apm.c optimization
- avoid expensive modulo (integer division) which happened
since APM_MAX_EVENTS is 20 (non-power-of-2)
- kill compiler warnings by initializing two variables
- add __read_mostly to some important static variables that are read often
(by idle loop etc.)
- constify several structures
Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-i386')
0 files changed, 0 insertions, 0 deletions