projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ebffd7
)
i386: mtrr crash fix
author
Andrew Morton
<
[email protected]
>
Sun, 1 Jul 2007 19:06:48 +0000
(12:06 -0700)
committer
Linus Torvalds
<
[email protected]
>
Sun, 1 Jul 2007 19:29:44 +0000
(12:29 -0700)
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" <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/i386/kernel/cpu/mtrr/generic.c
patch
|
blob
|
history
diff --git
a/arch/i386/kernel/cpu/mtrr/generic.c
b/arch/i386/kernel/cpu/mtrr/generic.c
index 5a551fb7ea7b93d84ef2136e213042ff5e2a3610..f6e46943e6efbf6a63ca2265ab6177d304338717 100644
(file)
--- a/
arch/i386/kernel/cpu/mtrr/generic.c
+++ b/
arch/i386/kernel/cpu/mtrr/generic.c
@@
-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)