]> git.baikalelectronics.ru Git - kernel.git/commit
mm: use roundown_pow_of_two() in zone_batchsize()
authorDavid Howells <dhowells@redhat.com>
Wed, 6 May 2009 23:03:02 +0000 (16:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 May 2009 23:36:10 +0000 (16:36 -0700)
commitfe71fad47d5d23173a01bfb53d029c6eda5c1466
tree68d64b7cf9671c2a725f4f191b3cfb4b37e41f32
parentd1d08c633abe290689907ba14b83fdbe8ed6ad97
mm: use roundown_pow_of_two() in zone_batchsize()

Use roundown_pow_of_two(N) in zone_batchsize() rather than (1 <<
(fls(N)-1)) as they are equivalent, and with the former it is easier to
see what is going on.

Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Lanttor Guo <lanttor.guo@freescale.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c