From: Andreas Mohr Date: Fri, 23 Jun 2006 09:04:17 +0000 (-0700) Subject: [PATCH] i386 apm.c optimization X-Git-Tag: v2.6.18-rc1~1081^2~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87af2ffd4ccd0e6a2ff316fd008a9bedb4a4cb66;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed