Skip to content

Commit 18b15fc

Browse files
committed
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes form Peter Anvin * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: intel_mid_powerbtn: mark irq as IRQF_NO_SUSPEND arch/x86/platform/geode/net5501.c: change active_low to 0 for LED driver x86, relocs: Remove an unused variable asm-generic: Use __BITS_PER_LONG in statfs.h x86/amd: Re-enable CPU topology extensions in case BIOS has disabled it
2 parents 271fd5d + ab27a20 commit 18b15fc

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

arch/x86/boot/compressed/relocs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,11 @@ static void print_absolute_symbols(void)
403403
for (i = 0; i < ehdr.e_shnum; i++) {
404404
struct section *sec = &secs[i];
405405
char *sym_strtab;
406-
Elf32_Sym *sh_symtab;
407406
int j;
408407

409408
if (sec->shdr.sh_type != SHT_SYMTAB) {
410409
continue;
411410
}
412-
sh_symtab = sec->symtab;
413411
sym_strtab = sec->link->strtab;
414412
for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Sym); j++) {
415413
Elf32_Sym *sym;

arch/x86/kernel/cpu/amd.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,24 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
580580
}
581581
}
582582

583+
/* re-enable TopologyExtensions if switched off by BIOS */
584+
if ((c->x86 == 0x15) &&
585+
(c->x86_model >= 0x10) && (c->x86_model <= 0x1f) &&
586+
!cpu_has(c, X86_FEATURE_TOPOEXT)) {
587+
u64 val;
588+
589+
if (!rdmsrl_amd_safe(0xc0011005, &val)) {
590+
val |= 1ULL << 54;
591+
wrmsrl_amd_safe(0xc0011005, val);
592+
rdmsrl(0xc0011005, val);
593+
if (val & (1ULL << 54)) {
594+
set_cpu_cap(c, X86_FEATURE_TOPOEXT);
595+
printk(KERN_INFO FW_INFO "CPU: Re-enabling "
596+
"disabled Topology Extensions Support\n");
597+
}
598+
}
599+
}
600+
583601
cpu_detect_cache_sizes(c);
584602

585603
/* Multi core CPU? */

arch/x86/platform/geode/net5501.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static struct gpio_led net5501_leds[] = {
6363
.name = "net5501:1",
6464
.gpio = 6,
6565
.default_trigger = "default-on",
66-
.active_low = 1,
66+
.active_low = 0,
6767
},
6868
};
6969

drivers/platform/x86/intel_mid_powerbtn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static int __devinit mfld_pb_probe(struct platform_device *pdev)
7878

7979
input_set_capability(input, EV_KEY, KEY_POWER);
8080

81-
error = request_threaded_irq(irq, NULL, mfld_pb_isr, 0,
81+
error = request_threaded_irq(irq, NULL, mfld_pb_isr, IRQF_NO_SUSPEND,
8282
DRIVER_NAME, input);
8383
if (error) {
8484
dev_err(&pdev->dev, "Unable to request irq %d for mfld power"

include/asm-generic/statfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ typedef __kernel_fsid_t fsid_t;
1515
* with a 10' pole.
1616
*/
1717
#ifndef __statfs_word
18-
#if BITS_PER_LONG == 64
18+
#if __BITS_PER_LONG == 64
1919
#define __statfs_word long
2020
#else
2121
#define __statfs_word __u32

0 commit comments

Comments
 (0)