diff options
| -rw-r--r-- | arch/x86/kernel/smpboot.c | 7 | ||||
| -rw-r--r-- | arch/x86/mm/ioremap.c | 4 | ||||
| -rw-r--r-- | arch/x86/mm/pageattr.c | 2 | ||||
| -rw-r--r-- | arch/x86/um/sys_call_table_32.c | 4 |
4 files changed, 10 insertions, 7 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 3fab55bea29b..7bd8a0823654 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
| @@ -349,9 +349,12 @@ static bool __cpuinit match_llc(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) | |||
| 349 | 349 | ||
| 350 | static bool __cpuinit match_mc(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) | 350 | static bool __cpuinit match_mc(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) |
| 351 | { | 351 | { |
| 352 | if (c->phys_proc_id == o->phys_proc_id) | 352 | if (c->phys_proc_id == o->phys_proc_id) { |
| 353 | return topology_sane(c, o, "mc"); | 353 | if (cpu_has(c, X86_FEATURE_AMD_DCM)) |
| 354 | return true; | ||
| 354 | 355 | ||
| 356 | return topology_sane(c, o, "mc"); | ||
| 357 | } | ||
| 355 | return false; | 358 | return false; |
| 356 | } | 359 | } |
| 357 | 360 | ||
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index be1ef574ce9a..78fe3f1ac49f 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c | |||
| @@ -180,7 +180,7 @@ err_free_memtype: | |||
| 180 | 180 | ||
| 181 | /** | 181 | /** |
| 182 | * ioremap_nocache - map bus memory into CPU space | 182 | * ioremap_nocache - map bus memory into CPU space |
| 183 | * @offset: bus address of the memory | 183 | * @phys_addr: bus address of the memory |
| 184 | * @size: size of the resource to map | 184 | * @size: size of the resource to map |
| 185 | * | 185 | * |
| 186 | * ioremap_nocache performs a platform specific sequence of operations to | 186 | * ioremap_nocache performs a platform specific sequence of operations to |
| @@ -217,7 +217,7 @@ EXPORT_SYMBOL(ioremap_nocache); | |||
| 217 | 217 | ||
| 218 | /** | 218 | /** |
| 219 | * ioremap_wc - map memory into CPU space write combined | 219 | * ioremap_wc - map memory into CPU space write combined |
| 220 | * @offset: bus address of the memory | 220 | * @phys_addr: bus address of the memory |
| 221 | * @size: size of the resource to map | 221 | * @size: size of the resource to map |
| 222 | * | 222 | * |
| 223 | * This version of ioremap ensures that the memory is marked write combining. | 223 | * This version of ioremap ensures that the memory is marked write combining. |
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index e1ebde315210..a718e0d23503 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
| @@ -122,7 +122,7 @@ within(unsigned long addr, unsigned long start, unsigned long end) | |||
| 122 | 122 | ||
| 123 | /** | 123 | /** |
| 124 | * clflush_cache_range - flush a cache range with clflush | 124 | * clflush_cache_range - flush a cache range with clflush |
| 125 | * @addr: virtual start address | 125 | * @vaddr: virtual start address |
| 126 | * @size: number of bytes to flush | 126 | * @size: number of bytes to flush |
| 127 | * | 127 | * |
| 128 | * clflush is an unordered instruction which needs fencing with mfence | 128 | * clflush is an unordered instruction which needs fencing with mfence |
diff --git a/arch/x86/um/sys_call_table_32.c b/arch/x86/um/sys_call_table_32.c index 416bd40c0eba..68d1dc91b37b 100644 --- a/arch/x86/um/sys_call_table_32.c +++ b/arch/x86/um/sys_call_table_32.c | |||
| @@ -39,9 +39,9 @@ | |||
| 39 | #undef __SYSCALL_I386 | 39 | #undef __SYSCALL_I386 |
| 40 | #define __SYSCALL_I386(nr, sym, compat) [ nr ] = sym, | 40 | #define __SYSCALL_I386(nr, sym, compat) [ nr ] = sym, |
| 41 | 41 | ||
| 42 | typedef void (*sys_call_ptr_t)(void); | 42 | typedef asmlinkage void (*sys_call_ptr_t)(void); |
| 43 | 43 | ||
| 44 | extern void sys_ni_syscall(void); | 44 | extern asmlinkage void sys_ni_syscall(void); |
| 45 | 45 | ||
| 46 | const sys_call_ptr_t sys_call_table[] __cacheline_aligned = { | 46 | const sys_call_ptr_t sys_call_table[] __cacheline_aligned = { |
| 47 | /* | 47 | /* |
