summaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorMilton Miller2008-07-24 06:28:20 +0200
committerLinus Torvalds2008-07-24 19:47:21 +0200
commit9ca908f47bc784c90e17a553ce33e756c73feac4 (patch)
tree2b6752e655484b1936ee1d410f272f9ff8b0305d /mm/migrate.c
parentmemory-hotplug: add sysfs removable attribute for hotplug memory remove (diff)
downloadkernel-qcow2-linux-9ca908f47bc784c90e17a553ce33e756c73feac4.tar.gz
kernel-qcow2-linux-9ca908f47bc784c90e17a553ce33e756c73feac4.tar.xz
kernel-qcow2-linux-9ca908f47bc784c90e17a553ce33e756c73feac4.zip
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 <miltonm@bga.com> Cc: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/migrate.c')
0 files changed, 0 insertions, 0 deletions