Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

i386: mtrr crash fix

Commit 3ebad5905609476a4ff1151a66b21d9794009961 ("[PATCH] x86: Save and
restore the fixed-range MTRRs of the BSP when suspending") added mtrr
operations without verifying that the CPU has MTRRs. Crashes transmeta
CPUs.

Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: <linux@horizon.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andrew Morton and committed by
Linus Torvalds
84288ad8 5ebffd7c

+2 -1
+2 -1
arch/i386/kernel/cpu/mtrr/generic.c
··· 65 65 66 66 void mtrr_save_fixed_ranges(void *info) 67 67 { 68 - get_fixed_ranges(mtrr_state.fixed_ranges); 68 + if (cpu_has_mtrr) 69 + get_fixed_ranges(mtrr_state.fixed_ranges); 69 70 } 70 71 71 72 static void print_fixed(unsigned base, unsigned step, const mtrr_type*types)