From: Milton Miller Date: Thu, 24 Jul 2008 04:28:20 +0000 (-0700) Subject: kcalloc: remove runtime division X-Git-Tag: v2.6.27-rc1~752 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ca908f47bc784c90e17a553ce33e756c73feac4;p=pandora-kernel.git kcalloc: remove runtime division While in all cases in the kernel we know the size of the elements to be created, we don't always know the count of elements. By commuting the size and count in the overflow check, the compiler can reduce the runtime division of size_t with a compare to a (unique) constant in these cases. Signed-off-by: Milton Miller Cc: Takashi Iwai Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed