.. | .. |
---|
52 | 52 | #include <asm/e820/api.h> |
---|
53 | 53 | #include <asm/mtrr.h> |
---|
54 | 54 | #include <asm/msr.h> |
---|
55 | | -#include <asm/pat.h> |
---|
| 55 | +#include <asm/memtype.h> |
---|
56 | 56 | |
---|
57 | 57 | #include "mtrr.h" |
---|
58 | 58 | |
---|
.. | .. |
---|
127 | 127 | |
---|
128 | 128 | if (use_intel()) |
---|
129 | 129 | rdmsr(MSR_MTRRcap, config, dummy); |
---|
130 | | - else if (is_cpu(AMD)) |
---|
| 130 | + else if (is_cpu(AMD) || is_cpu(HYGON)) |
---|
131 | 131 | config = 2; |
---|
132 | 132 | else if (is_cpu(CYRIX) || is_cpu(CENTAUR)) |
---|
133 | 133 | config = 8; |
---|
.. | .. |
---|
793 | 793 | |
---|
794 | 794 | if (!use_intel() || mtrr_aps_delayed_init) |
---|
795 | 795 | return; |
---|
796 | | - |
---|
797 | | - rcu_cpu_starting(smp_processor_id()); |
---|
798 | 796 | |
---|
799 | 797 | /* |
---|
800 | 798 | * Ideally we should hold mtrr_mutex here to avoid mtrr entries |
---|