[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200706301126.41179.ak@suse.de>
Date: Sat, 30 Jun 2007 11:26:40 +0200
From: Andi Kleen <ak@...e.de>
To: linux@...izon.com
Cc: linux-kernel@...r.kernel.org, linux-pm@...ts.linux-foundation.org,
bk@...e.de, hpa@...or.com, michal.k.k.piotrowski@...il.com
Subject: Re: 2.6.22-rcX Transmeta/APM regression
On Saturday 30 June 2007 05:03, linux@...izon.com wrote:
> Anyway, the patch which introduces the problem is the aptly named 3ebad:
> 3ebad59056: [PATCH] x86: Save and restore the fixed-range MTRRs of the BSP
> when suspending
>
> 2.6.22-rc6 plus that one commit reverted successfully does APM suspend
> (and resume) for me.
Mr.Linux, Does that patch fix it?
-Andi
i386: Check if CPU has MTRRs before trying to save them
Signed-off-by: Andi Kleen <ak@...e.de>
Index: linux/arch/i386/kernel/cpu/mtrr/main.c
===================================================================
--- linux.orig/arch/i386/kernel/cpu/mtrr/main.c
+++ linux/arch/i386/kernel/cpu/mtrr/main.c
@@ -734,8 +734,11 @@ void mtrr_ap_init(void)
*/
void mtrr_save_state(void)
{
- int cpu = get_cpu();
+ int cpu;
+ if (!cpu_has_mtrr)
+ return;
+ cpu = get_cpu();
if (cpu == 0)
mtrr_save_fixed_ranges(NULL);
else
-
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