lkml.org 
[lkml]   [2003]   [Apr]   [22]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Runtime memory barrier patching
FromArjan van de Ven <>
Date22 Apr 2003 10:43:58 +0200
On Tue, 2003-04-22 at 01:23, Linux Kernel Mailing List wrote:
> ChangeSet 1.1169, 2003/04/21 16:23:20-07:00, ak@muc.de
> 
> 	[PATCH] Runtime memory barrier patching
> 
> 	This implements automatic code patching of memory barriers based
> 	on the CPU capabilities. Normally lock ; addl $0,(%esp) barriers
> 	are used, but these are a bit slow on the Pentium 4.
> 

very nice. Question: would it be doable use this for prefetch() as well?
Eg default to a non-prefetch kernel and patch in the proper prefetch
instruction for the current cpu ? (eg AMD prefetch vs Intel one etc etc)

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 12:34    [from the cache]
©2003-2008