Files
linux-apfs/arch/powerpc/include/asm
Anton Blanchard e35735b9a5 powerpc: Speed up clear_page by unrolling it
Unroll clear_page 8 times. A simple microbenchmark which
allocates and frees a zeroed page:

for (i = 0; i < iterations; i++) {
	unsigned long p = __get_free_page(GFP_KERNEL | __GFP_ZERO);
	free_page(p);
}

improves 20% on POWER8.

This assumes cacheline sizes won't grow beyond 512 bytes or
page sizes wont drop below 1kB, which is unlikely, but we could
add a runtime check during early init if it makes people nervous.

Michael found that some versions of gcc produce quite bad code
(all multiplies), so we give gcc a hand by using shifts and adds.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2014-10-02 16:04:21 +10:00
..
2014-04-18 14:20:41 +02:00
2014-04-18 14:20:41 +02:00
2014-04-18 14:20:41 +02:00
2014-05-28 13:35:35 +10:00
2013-04-18 13:03:53 +10:00
2014-04-09 12:53:28 +10:00
2014-01-23 16:36:54 -08:00
2014-06-25 18:49:40 -05:00
2014-07-28 19:29:15 +02:00
2013-12-09 11:40:25 +11:00
2014-07-28 14:10:23 +10:00
2014-07-28 14:10:23 +10:00
2014-06-26 13:19:42 +02:00
2014-04-07 10:33:12 +10:00
2013-11-06 14:13:49 +11:00
2013-11-26 12:12:28 +01:00
2012-09-17 16:31:51 +10:00
2014-06-24 12:43:15 +10:00
2014-07-11 16:06:08 +10:00
2014-02-17 11:19:37 +11:00
2013-10-30 16:02:28 +11:00