lkml.org 
[lkml]   [2003]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 2.6 workaround for Athlon/Opteron prefetch errata
On Thu, Sep 11, 2003 at 04:24:21PM +0200, Andi Kleen wrote:
> I considered that when writing the patch, but: is_prefetch is a single byte
> memory access for something already in cache. Checking for an Athlon
> CPU needs two memory accesses in boot_cpu_data at least (checking vendor
> and model)

You only need to check it once when the path is first taken, and then
set a variable that makes you exit as soon as you enter it again.

Dave

--
Dave Jones http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.053 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site