Skip to content

Commit bab0dcc

Browse files
committed
Merge branches 'x86-fixes-for-linus' and 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, reboot: Fix relocations in reboot_32.S x86, NUMA: Fix empty memblk detection in numa_cleanup_meminfo() x86, AMD: Fix APIC timer erratum 400 affecting K8 Rev.A-E processors * 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: genirq: Fix typo CONFIG_GENIRC_IRQ_SHOW_LEVEL
3 parents 497ff03 + 7806a49 + 94b2c36 commit bab0dcc

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎arch/x86/kernel/cpu/amd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ cpu_dev_register(amd_cpu_dev);
698698
*/
699699

700700
const int amd_erratum_400[] =
701-
AMD_OSVW_ERRATUM(1, AMD_MODEL_RANGE(0xf, 0x41, 0x2, 0xff, 0xf),
701+
AMD_OSVW_ERRATUM(1, AMD_MODEL_RANGE(0x0f, 0x4, 0x2, 0xff, 0xf),
702702
AMD_MODEL_RANGE(0x10, 0x2, 0x1, 0xff, 0xf));
703703
EXPORT_SYMBOL_GPL(amd_erratum_400);
704704

‎arch/x86/kernel/reboot_32.S‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ r_base = .
2121
/* Get our own relocated address */
2222
call 1f
2323
1: popl %ebx
24-
subl $1b, %ebx
24+
subl $(1b - r_base), %ebx
2525

2626
/* Compute the equivalent real-mode segment */
2727
movl %ebx, %ecx
2828
shrl $4, %ecx
2929

3030
/* Patch post-real-mode segment jump */
31-
movw dispatch_table(%ebx,%eax,2),%ax
32-
movw %ax, 101f(%ebx)
33-
movw %cx, 102f(%ebx)
31+
movw (dispatch_table - r_base)(%ebx,%eax,2),%ax
32+
movw %ax, (101f - r_base)(%ebx)
33+
movw %cx, (102f - r_base)(%ebx)
3434

3535
/* Set up the IDT for real mode. */
36-
lidtl machine_real_restart_idt(%ebx)
36+
lidtl (machine_real_restart_idt - r_base)(%ebx)
3737

3838
/*
3939
* Set up a GDT from which we can load segment descriptors for real
4040
* mode. The GDT is not used in real mode; it is just needed here to
4141
* prepare the descriptors.
4242
*/
43-
lgdtl machine_real_restart_gdt(%ebx)
43+
lgdtl (machine_real_restart_gdt - r_base)(%ebx)
4444

4545
/*
4646
* Load the data segment registers with 16-bit compatible values

‎arch/x86/mm/numa_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ int __init numa_cleanup_meminfo(struct numa_meminfo *mi)
306306
bi->end = min(bi->end, high);
307307

308308
/* and there's no empty block */
309-
if (bi->start == bi->end) {
309+
if (bi->start >= bi->end) {
310310
numa_remove_memblk_from(i--, mi);
311311
continue;
312312
}

‎kernel/irq/proc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ int show_interrupts(struct seq_file *p, void *v)
419419
} else {
420420
seq_printf(p, " %8s", "None");
421421
}
422-
#ifdef CONFIG_GENIRC_IRQ_SHOW_LEVEL
422+
#ifdef CONFIG_GENERIC_IRQ_SHOW_LEVEL
423423
seq_printf(p, " %-8s", irqd_is_level_type(&desc->irq_data) ? "Level" : "Edge");
424424
#endif
425425
if (desc->name)

0 commit comments

Comments
 (0)