| .. | .. |
|---|
| 10 | 10 | * Send feedback to <support@numascale.com> |
|---|
| 11 | 11 | * |
|---|
| 12 | 12 | */ |
|---|
| 13 | | - |
|---|
| 13 | +#include <linux/types.h> |
|---|
| 14 | 14 | #include <linux/init.h> |
|---|
| 15 | +#include <linux/pgtable.h> |
|---|
| 15 | 16 | |
|---|
| 16 | 17 | #include <asm/numachip/numachip.h> |
|---|
| 17 | 18 | #include <asm/numachip/numachip_csr.h> |
|---|
| 18 | | -#include <asm/ipi.h> |
|---|
| 19 | | -#include <asm/apic_flat_64.h> |
|---|
| 20 | | -#include <asm/pgtable.h> |
|---|
| 21 | | -#include <asm/pci_x86.h> |
|---|
| 19 | + |
|---|
| 20 | + |
|---|
| 21 | +#include "local.h" |
|---|
| 22 | 22 | |
|---|
| 23 | 23 | u8 numachip_system __read_mostly; |
|---|
| 24 | 24 | static const struct apic apic_numachip1; |
|---|
| .. | .. |
|---|
| 175 | 175 | this_cpu_write(cpu_llc_id, node); |
|---|
| 176 | 176 | |
|---|
| 177 | 177 | /* Account for nodes per socket in multi-core-module processors */ |
|---|
| 178 | | - if (static_cpu_has(X86_FEATURE_NODEID_MSR)) { |
|---|
| 178 | + if (boot_cpu_has(X86_FEATURE_NODEID_MSR)) { |
|---|
| 179 | 179 | rdmsrl(MSR_FAM10H_NODE_ID, val); |
|---|
| 180 | 180 | nodes = ((val >> 3) & 7) + 1; |
|---|
| 181 | 181 | } |
|---|