]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: micro optimise zone_watermark_ok
authorNick Piggin <nickpiggin@yahoo.com.au>
Wed, 4 Oct 2006 09:15:23 +0000 (02:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 4 Oct 2006 14:55:12 +0000 (07:55 -0700)
commited71f3e3e5ed8d90b7a161a8f0f6792c92bb4793
tree6e5704f603d1596df930bc22f5e926cc50550102
parent72a106d5bedfb8d95ad4be305f4044e6adaea184
[PATCH] mm: micro optimise zone_watermark_ok

Having min be a signed quantity means gcc can't turn high latency divides
into shifts.  There happen to be two such divides for GFP_ATOMIC (ie.
networking, ie.  important) allocations, one of which depends on the other.
 Fixing this makes code smaller as a bonus.

Shame on somebody (probably me).

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/page_alloc.c