From: Matteo Croce <technoboy85@gmail.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] AMD Geode LX optimizations
Date: Thu, 1 Oct 2009 17:11:10 +0200 [thread overview]
Message-ID: <40101cc30910010811v5d15ff4cx9dd57c9cc9b4b045@mail.gmail.com> (raw)
Hi,
i found that we can optimize a bit the kernel for the AMD Geode LX.
I made this simple patch against a 2.6.31 kernel.
Tested, compiles and works fine.
Signed-off-by: Matteo Croce <technoboy85@gmail.com>
--- a/arch/x86/Makefile_32.cpu 2009-09-10 21:16:53.198243207 +0200
+++ b/arch/x86/Makefile_32.cpu 2009-09-10 21:21:28.434245121 +0200
@@ -39,7 +39,7 @@
# Geode GX1 support
cflags-$(CONFIG_MGEODEGX1) += -march=pentium-mmx
-
+cflags-$(CONFIG_MGEODE_LX) += $(call cc-option,-march=geode,-march=pentium-mmx)
# add at the end to overwrite eventual tuning options from earlier
# cpu entries
cflags-$(CONFIG_X86_GENERIC) += $(call tune,generic,$(call tune,i686))
--- a/arch/x86/Kconfig.cpu 2009-10-01 16:51:56.567771217 +0200
+++ b/arch/x86/Kconfig.cpu 2009-10-01 16:52:25.936010648 +0200
@@ -397,7 +397,7 @@
# generates cmov.
config X86_CMOV
def_bool y
- depends on (MK8 || MK7 || MCORE2 || MPENTIUM4 || MPENTIUMM ||
MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7 || MCRUSOE ||
MEFFICEON || X86_64)
+ depends on (MK8 || MK7 || MCORE2 || MPENTIUM4 || MPENTIUMM ||
MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7 || MCRUSOE ||
MEFFICEON || MGEODE_LX || X86_64)
config X86_MINIMUM_CPU_FAMILY
int
next reply other threads:[~2009-10-01 15:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-01 15:11 Matteo Croce [this message]
2009-10-02 18:27 ` [tip:x86/cpu] x86: " tip-bot for Matteo Croce
2010-03-01 22:18 ` Matteo Croce
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=40101cc30910010811v5d15ff4cx9dd57c9cc9b4b045@mail.gmail.com \
--to=technoboy85@gmail.com \
--cc=hpa@zytor.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®