All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Bronaugh <dbronaugh@linuxboxen.org>
To: linux-kernel@vger.kernel.org
Subject: Patch to enable K6-2 and K6-3 processor optimizations
Date: Fri, 9 Aug 2002 01:52:34 -0700	[thread overview]
Message-ID: <20020809015234.2010ebac.dbronaugh@linuxboxen.org> (raw)

Hi,

Well, I said I was new to this; forgot to include the patch, and what kernel version it was against.

It's against 2.4.19, but doesn't really change much, so should apply to most kernel revisions.

Patch follows: 

diff -Naur -X dontdiff linux/arch/i386/Makefile linux-2.4/arch/i386/Makefile
--- linux/arch/i386/Makefile    2001-04-12 12:20:31.000000000 -0700
+++ linux-2.4/arch/i386/Makefile        2002-08-09 01:16:40.000000000 -0700
@@ -62,6 +62,16 @@
 CFLAGS += $(shell if $(CC) -march=k6 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=k6"; else echo "-march=i586"; fi)
 endif
 
+ifdef CONFIG_MK6_2
+CFLAGS += $(shell if $(CC) -march=k6-2 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=k6-2"; else if $(CC) -march=k6 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=k6"; else echo "-march=i586"; fi; fi)
+endif
+
+ifdef CONFIG_MK6_3
+CFLAGS += $(shell if $(CC) -march=k6-3 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=k6-3"; else if $(CC) -march=k6 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=k6"; else echo "-march=i586"; fi; fi)
+endif
+
+
+
 ifdef CONFIG_MK7
 CFLAGS += $(shell if $(CC) -march=athlon -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=athlon"; else echo "-march=i686 -malign-functions=4"; fi) 
 endif
diff -Naur -X dontdiff linux/arch/i386/config.in linux-2.4/arch/i386/config.in
--- linux/arch/i386/config.in   2002-08-09 01:21:03.000000000 -0700
+++ linux-2.4/arch/i386/config.in       2002-08-09 01:11:39.000000000 -0700
@@ -35,7 +35,9 @@
         Pentium-Pro/Celeron/Pentium-II         CONFIG_M686 \
         Pentium-III/Celeron(Coppermine)        CONFIG_MPENTIUMIII \
         Pentium-4                              CONFIG_MPENTIUM4 \
-        K6/K6-II/K6-III                        CONFIG_MK6 \
+        K6                                     CONFIG_MK6 \
+        K6-II                                  CONFIG_MK6_2 \
+        K6-III                                 CONFIG_MK6_3 \
         Athlon/Duron/K7                        CONFIG_MK7 \
         Elan                                   CONFIG_MELAN \
         Crusoe                                 CONFIG_MCRUSOE \
@@ -119,6 +121,20 @@
    define_bool CONFIG_X86_TSC y
    define_bool CONFIG_X86_USE_PPRO_CHECKSUM y
 fi
+# Since I don't know whether CONFIG_X86_USE_3DNOW means 3dnowext or not, I'm playing it safe
+if [ "$CONFIG_MK6_2" = "y" ]; then
+   define_int  CONFIG_X86_L1_CACHE_SHIFT 5
+   define_bool CONFIG_X86_ALIGNMENT_16 y
+   define_bool CONFIG_X86_TSC y
+   define_bool CONFIG_X86_USE_PPRO_CHECKSUM y
+fi
+if [ "$CONFIG_MK6_3" = "y" ]; then
+   define_int  CONFIG_X86_L1_CACHE_SHIFT 5
+   define_bool CONFIG_X86_ALIGNMENT_16 y
+   define_bool CONFIG_X86_TSC y

+   define_bool CONFIG_X86_USE_PPRO_CHECKSUM y
+   define_bool CONFIG_X86_USE_3DNOW y
+fi
 if [ "$CONFIG_MK7" = "y" ]; then
    define_int  CONFIG_X86_L1_CACHE_SHIFT 6
    define_bool CONFIG_X86_TSC y

             reply	other threads:[~2002-08-09  8:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-09  8:52 David Bronaugh [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-08-09  8:48 Patch to enable K6-2 and K6-3 processor optimizations David Bronaugh
2002-08-09 10:31 ` Alan Cox
2002-08-09 17:28   ` David Bronaugh
2002-08-09 16:45 ` Josh McKinney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020809015234.2010ebac.dbronaugh@linuxboxen.org \
    --to=dbronaugh@linuxboxen.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.