Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branches 'x86-build-for-linus', 'x86-cleanups-for-linus' and 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 build, cleanup and defconfig updates from Ingo Molnar:
"A single minor build change to suppress a repetitive build messages,
misc cleanups and a defconfig update"

* 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/purgatory, build: Suppress kexec-purgatory.c is up to date message

* 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86, CPU, AMD: Move K8 TLB flush filter workaround to K8 code
x86, espfix: Remove stale ptemask
x86, msr: Use seek definitions instead of hard-coded values
x86, msr: Convert printk to pr_foo()
x86, msr: Use PTR_ERR_OR_ZERO
x86/simplefb: Use PTR_ERR_OR_ZERO
x86/sysfb: Use PTR_ERR_OR_ZERO
x86, cpuid: Use PTR_ERR_OR_ZERO

* 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/kconfig/defconfig: Enable CONFIG_FHANDLE=y

+23 -26
+1
arch/x86/configs/i386_defconfig
··· 8 8 CONFIG_TASK_DELAY_ACCT=y 9 9 CONFIG_TASK_XACCT=y 10 10 CONFIG_TASK_IO_ACCOUNTING=y 11 + CONFIG_FHANDLE=y 11 12 CONFIG_AUDIT=y 12 13 CONFIG_NO_HZ=y 13 14 CONFIG_HIGH_RES_TIMERS=y
+1
arch/x86/configs/x86_64_defconfig
··· 7 7 CONFIG_TASK_DELAY_ACCT=y 8 8 CONFIG_TASK_XACCT=y 9 9 CONFIG_TASK_IO_ACCOUNTING=y 10 + CONFIG_FHANDLE=y 10 11 CONFIG_AUDIT=y 11 12 CONFIG_NO_HZ=y 12 13 CONFIG_HIGH_RES_TIMERS=y
+11 -12
arch/x86/kernel/cpu/amd.c
··· 566 566 567 567 if (!c->x86_model_id[0]) 568 568 strcpy(c->x86_model_id, "Hammer"); 569 + 570 + #ifdef CONFIG_SMP 571 + /* 572 + * Disable TLB flush filter by setting HWCR.FFDIS on K8 573 + * bit 6 of msr C001_0015 574 + * 575 + * Errata 63 for SH-B3 steppings 576 + * Errata 122 for all steppings (F+ have it disabled by default) 577 + */ 578 + msr_set_bit(MSR_K7_HWCR, 6); 579 + #endif 569 580 } 570 581 571 582 static void init_amd_gh(struct cpuinfo_x86 *c) ··· 646 635 static void init_amd(struct cpuinfo_x86 *c) 647 636 { 648 637 u32 dummy; 649 - 650 - #ifdef CONFIG_SMP 651 - /* 652 - * Disable TLB flush filter by setting HWCR.FFDIS on K8 653 - * bit 6 of msr C001_0015 654 - * 655 - * Errata 63 for SH-B3 steppings 656 - * Errata 122 for all steppings (F+ have it disabled by default) 657 - */ 658 - if (c->x86 == 0xf) 659 - msr_set_bit(MSR_K7_HWCR, 6); 660 - #endif 661 638 662 639 early_init_amd(c); 663 640
+1 -1
arch/x86/kernel/cpuid.c
··· 143 143 144 144 dev = device_create(cpuid_class, NULL, MKDEV(CPUID_MAJOR, cpu), NULL, 145 145 "cpu%d", cpu); 146 - return IS_ERR(dev) ? PTR_ERR(dev) : 0; 146 + return PTR_ERR_OR_ZERO(dev); 147 147 } 148 148 149 149 static void cpuid_device_destroy(int cpu)
-3
arch/x86/kernel/espfix_64.c
··· 122 122 void __init init_espfix_bsp(void) 123 123 { 124 124 pgd_t *pgd_p; 125 - pteval_t ptemask; 126 - 127 - ptemask = __supported_pte_mask; 128 125 129 126 /* Install the espfix pud into the kernel page directory */ 130 127 pgd_p = &init_level4_pgt[pgd_index(ESPFIX_BASE_ADDR)];
+6 -5
arch/x86/kernel/msr.c
··· 22 22 * an SMP box will direct the access to CPU %d. 23 23 */ 24 24 25 + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 26 + 25 27 #include <linux/module.h> 26 28 27 29 #include <linux/types.h> ··· 52 50 53 51 mutex_lock(&inode->i_mutex); 54 52 switch (orig) { 55 - case 0: 53 + case SEEK_SET: 56 54 file->f_pos = offset; 57 55 ret = file->f_pos; 58 56 break; 59 - case 1: 57 + case SEEK_CUR: 60 58 file->f_pos += offset; 61 59 ret = file->f_pos; 62 60 break; ··· 208 206 209 207 dev = device_create(msr_class, NULL, MKDEV(MSR_MAJOR, cpu), NULL, 210 208 "msr%d", cpu); 211 - return IS_ERR(dev) ? PTR_ERR(dev) : 0; 209 + return PTR_ERR_OR_ZERO(dev); 212 210 } 213 211 214 212 static void msr_device_destroy(int cpu) ··· 250 248 i = 0; 251 249 252 250 if (__register_chrdev(MSR_MAJOR, 0, NR_CPUS, "cpu/msr", &msr_fops)) { 253 - printk(KERN_ERR "msr: unable to get major %d for msr\n", 254 - MSR_MAJOR); 251 + pr_err("unable to get major %d for msr\n", MSR_MAJOR); 255 252 err = -EBUSY; 256 253 goto out; 257 254 }
+1 -1
arch/x86/kernel/sysfb.c
··· 67 67 68 68 pd = platform_device_register_resndata(NULL, name, 0, 69 69 NULL, 0, si, sizeof(*si)); 70 - return IS_ERR(pd) ? PTR_ERR(pd) : 0; 70 + return PTR_ERR_OR_ZERO(pd); 71 71 } 72 72 73 73 /* must execute after PCI subsystem for EFI quirks */
+1 -4
arch/x86/kernel/sysfb_simplefb.c
··· 88 88 89 89 pd = platform_device_register_resndata(NULL, "simple-framebuffer", 0, 90 90 &res, 1, mode, sizeof(*mode)); 91 - if (IS_ERR(pd)) 92 - return PTR_ERR(pd); 93 - 94 - return 0; 91 + return PTR_ERR_OR_ZERO(pd); 95 92 }
+1
arch/x86/purgatory/Makefile
··· 24 24 25 25 $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE 26 26 $(call if_changed,bin2c) 27 + @: 27 28 28 29 29 30 obj-$(CONFIG_KEXEC_FILE) += kexec-purgatory.o