]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm/slab.c: prefetchw the start of new allocated objects
authorEric Dumazet <dada1@cosmosbay.com>
Sat, 3 Sep 2005 22:55:06 +0000 (15:55 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:05:48 +0000 (00:05 -0700)
commit0b101092ffa1491c18006598ca7ae400793f5160
treef2855e8ca82929859cb1fe249982b3ba1ccf9b5e
parent13f38bed09ffd8e11f1ac0c7683f191fe108245e
[PATCH] mm/slab.c: prefetchw the start of new allocated objects

Mostobjects returned by __cache_alloc() will be written by the caller,
(but not all callers want to write all the object, but just at the
begining) prefetchw() tells the modern CPU to think about the future
writes, ie start some memory transactions in advance.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c