2007-02-14 19:20:42

by Marcelo Tosatti

[permalink] [raw]
Subject: [PATCH] use movntq version of fast_clear_page/fast_copy_page on Geode


movntq instruction is supported by Geode CPU's, so use
fast_clear_page/fast_copy_page versions that have it.

Signed-off-by: Marcelo Tosatti <[email protected]>

diff --git a/arch/i386/lib/mmx.c b/arch/i386/lib/mmx.c
index 28084d2..ddc1421 100644
--- a/arch/i386/lib/mmx.c
+++ b/arch/i386/lib/mmx.c
@@ -121,7 +121,7 @@ void *_mmx_memcpy(void *to, const void *
return p;
}

-#ifdef CONFIG_MK7
+#if defined (CONFIG_MK7) || defined(CONFIG_MGEODE_LX)

/*
* The K7 has streaming cache bypass load/store. The Cyrix III, K6 and