i386: mtrr crash fix
Commit 3ebad59056
("[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>
This commit is contained in:
parent
5ebffd7c05
commit
84288ad89e
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ get_fixed_ranges(mtrr_type * frs)
|
|||
|
||||
void mtrr_save_fixed_ranges(void *info)
|
||||
{
|
||||
get_fixed_ranges(mtrr_state.fixed_ranges);
|
||||
if (cpu_has_mtrr)
|
||||
get_fixed_ranges(mtrr_state.fixed_ranges);
|
||||
}
|
||||
|
||||
static void print_fixed(unsigned base, unsigned step, const mtrr_type*types)
|
||||
|
|
Loading…
Reference in a new issue