]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Merge branches 'x86-build-for-linus', 'x86-cleanups-for-linus' and 'x86-debug-for...
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Dec 2014 20:35:46 +0000 (12:35 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Dec 2014 20:35:46 +0000 (12:35 -0800)
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

arch/x86/configs/i386_defconfig
arch/x86/configs/x86_64_defconfig
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpuid.c
arch/x86/kernel/espfix_64.c
arch/x86/kernel/msr.c
arch/x86/kernel/sysfb.c
arch/x86/kernel/sysfb_simplefb.c
arch/x86/purgatory/Makefile

index 32d2e7056c87098975c25b2d1ec4e848747e140c..419819d6dab3b7573196dc685c9bc9ea236a147f 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_TASKSTATS=y
 CONFIG_TASK_DELAY_ACCT=y
 CONFIG_TASK_XACCT=y
 CONFIG_TASK_IO_ACCOUNTING=y
+CONFIG_FHANDLE=y
 CONFIG_AUDIT=y
 CONFIG_NO_HZ=y
 CONFIG_HIGH_RES_TIMERS=y
index a481dd4755d5fea55eb9ca32eeb4581e0d3a72a4..4c311ddd973bb60686079a5c4d2831cd0bf224c7 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_TASKSTATS=y
 CONFIG_TASK_DELAY_ACCT=y
 CONFIG_TASK_XACCT=y
 CONFIG_TASK_IO_ACCOUNTING=y
+CONFIG_FHANDLE=y
 CONFIG_AUDIT=y
 CONFIG_NO_HZ=y
 CONFIG_HIGH_RES_TIMERS=y
index 813d29d00a175cccecc0d673b1f94a817addbbd7..15c5df92f74ec84a1861ac521fb8f4a9d2895dea 100644 (file)
@@ -566,6 +566,17 @@ static void init_amd_k8(struct cpuinfo_x86 *c)
 
        if (!c->x86_model_id[0])
                strcpy(c->x86_model_id, "Hammer");
+
+#ifdef CONFIG_SMP
+       /*
+        * Disable TLB flush filter by setting HWCR.FFDIS on K8
+        * bit 6 of msr C001_0015
+        *
+        * Errata 63 for SH-B3 steppings
+        * Errata 122 for all steppings (F+ have it disabled by default)
+        */
+       msr_set_bit(MSR_K7_HWCR, 6);
+#endif
 }
 
 static void init_amd_gh(struct cpuinfo_x86 *c)
@@ -636,18 +647,6 @@ static void init_amd(struct cpuinfo_x86 *c)
 {
        u32 dummy;
 
-#ifdef CONFIG_SMP
-       /*
-        * Disable TLB flush filter by setting HWCR.FFDIS on K8
-        * bit 6 of msr C001_0015
-        *
-        * Errata 63 for SH-B3 steppings
-        * Errata 122 for all steppings (F+ have it disabled by default)
-        */
-       if (c->x86 == 0xf)
-               msr_set_bit(MSR_K7_HWCR, 6);
-#endif
-
        early_init_amd(c);
 
        /*
index 3225ae6c51806af1590ce780a68ff67e6ca8ae77..83741a71558fb0a311fb1bb079e125f24435344a 100644 (file)
@@ -143,7 +143,7 @@ static int cpuid_device_create(int cpu)
 
        dev = device_create(cpuid_class, NULL, MKDEV(CPUID_MAJOR, cpu), NULL,
                            "cpu%d", cpu);
-       return IS_ERR(dev) ? PTR_ERR(dev) : 0;
+       return PTR_ERR_OR_ZERO(dev);
 }
 
 static void cpuid_device_destroy(int cpu)
index 94d857fb103396cec7eb62981a86ce7ed43f5001..f5d0730e7b084beddefb0f4b8ff6755b9166535a 100644 (file)
@@ -122,9 +122,6 @@ static void init_espfix_random(void)
 void __init init_espfix_bsp(void)
 {
        pgd_t *pgd_p;
-       pteval_t ptemask;
-
-       ptemask = __supported_pte_mask;
 
        /* Install the espfix pud into the kernel page directory */
        pgd_p = &init_level4_pgt[pgd_index(ESPFIX_BASE_ADDR)];
index c9603ac80de5ecbc32ac80027d33a815ee6f9e94..113e70784854fb55bdc0eb08fe5e38bee4946126 100644 (file)
@@ -22,6 +22,8 @@
  * an SMP box will direct the access to CPU %d.
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/module.h>
 
 #include <linux/types.h>
@@ -50,11 +52,11 @@ static loff_t msr_seek(struct file *file, loff_t offset, int orig)
 
        mutex_lock(&inode->i_mutex);
        switch (orig) {
-       case 0:
+       case SEEK_SET:
                file->f_pos = offset;
                ret = file->f_pos;
                break;
-       case 1:
+       case SEEK_CUR:
                file->f_pos += offset;
                ret = file->f_pos;
                break;
@@ -206,7 +208,7 @@ static int msr_device_create(int cpu)
 
        dev = device_create(msr_class, NULL, MKDEV(MSR_MAJOR, cpu), NULL,
                            "msr%d", cpu);
-       return IS_ERR(dev) ? PTR_ERR(dev) : 0;
+       return PTR_ERR_OR_ZERO(dev);
 }
 
 static void msr_device_destroy(int cpu)
@@ -248,8 +250,7 @@ static int __init msr_init(void)
        i = 0;
 
        if (__register_chrdev(MSR_MAJOR, 0, NR_CPUS, "cpu/msr", &msr_fops)) {
-               printk(KERN_ERR "msr: unable to get major %d for msr\n",
-                      MSR_MAJOR);
+               pr_err("unable to get major %d for msr\n", MSR_MAJOR);
                err = -EBUSY;
                goto out;
        }
index 193ec2ce46c73dfed3be1508d0c04064c4c86585..160386e9fc17d02882d6cad8c10e0d9f3f472da6 100644 (file)
@@ -67,7 +67,7 @@ static __init int sysfb_init(void)
 
        pd = platform_device_register_resndata(NULL, name, 0,
                                               NULL, 0, si, sizeof(*si));
-       return IS_ERR(pd) ? PTR_ERR(pd) : 0;
+       return PTR_ERR_OR_ZERO(pd);
 }
 
 /* must execute after PCI subsystem for EFI quirks */
index 86179d4098938d50e13f25b6e75cfe8a198b7b80..764a29f84de7feea6346ce1d822af64f14af63ff 100644 (file)
@@ -88,8 +88,5 @@ __init int create_simplefb(const struct screen_info *si,
 
        pd = platform_device_register_resndata(NULL, "simple-framebuffer", 0,
                                               &res, 1, mode, sizeof(*mode));
-       if (IS_ERR(pd))
-               return PTR_ERR(pd);
-
-       return 0;
+       return PTR_ERR_OR_ZERO(pd);
 }
index f52e033557c9e0b54c41248101e0d7d7ed7cb76f..2c835e356349b9284b6b6997fff19208b6dd1b61 100644 (file)
@@ -24,6 +24,7 @@ quiet_cmd_bin2c = BIN2C   $@
 
 $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE
        $(call if_changed,bin2c)
+       @:
 
 
 obj-$(CONFIG_KEXEC_FILE)       += kexec-purgatory.o