[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <200801192045.17291.yinghai.lu@sun.com>
Date: Sat, 19 Jan 2008 20:45:16 -0800
From: Yinghai Lu <Yinghai.Lu@....COM>
To: Ingo Molnar <mingo@...e.hu>
Cc: Andi Kleen <ak@...e.de>, LKML <linux-kernel@...r.kernel.org>,
Jesse Barnes <jesse.barnes@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] x86: disable_mtrr_trim only need for x86_64
[PATCH] x86: disable_mtrr_trim only need for x86_64
mtrr_trim_uncached_memory is only used in x86_64,
so disable_mtrr_trim is not needed for x86_32
Signed-off-by: Yinghai Lu <yinghai.lu@....com>
diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c
index 46763e3..608c88a 100644
--- a/arch/x86/kernel/cpu/mtrr/main.c
+++ b/arch/x86/kernel/cpu/mtrr/main.c
@@ -624,6 +624,7 @@ static struct sysdev_driver mtrr_sysdev_driver = {
.resume = mtrr_restore,
};
+#ifdef CONFIG_X86_64
static int disable_mtrr_trim;
static int __init disable_mtrr_trim_setup(char *str)
@@ -633,7 +634,6 @@ static int __init disable_mtrr_trim_setup(char *str)
}
early_param("disable_mtrr_trim", disable_mtrr_trim_setup);
-#ifdef CONFIG_X86_64
/**
* mtrr_trim_uncached_memory - trim RAM not covered by MTRRs
*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists