Browse Source

Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 platform updates from Thomas Gleixner:
 "Trivial cleanups and improvements"

* 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/platform/UV: Remove redundant check of p == q
  x86/platform/olpc: Use PTR_ERR_OR_ZERO()
  x86/platform/UV: Mark memblock related init code and data correctly
Linus Torvalds 7 years ago
parent
commit
7edcf0d314

+ 2 - 2
arch/x86/kernel/apic/x2apic_uv_x.c

@@ -394,10 +394,10 @@ extern int uv_hub_info_version(void)
 EXPORT_SYMBOL(uv_hub_info_version);
 EXPORT_SYMBOL(uv_hub_info_version);
 
 
 /* Default UV memory block size is 2GB */
 /* Default UV memory block size is 2GB */
-static unsigned long mem_block_size = (2UL << 30);
+static unsigned long mem_block_size __initdata = (2UL << 30);
 
 
 /* Kernel parameter to specify UV mem block size */
 /* Kernel parameter to specify UV mem block size */
-static int parse_mem_block_size(char *ptr)
+static int __init parse_mem_block_size(char *ptr)
 {
 {
 	unsigned long size = memparse(ptr, NULL);
 	unsigned long size = memparse(ptr, NULL);
 
 

+ 1 - 3
arch/x86/platform/olpc/olpc.c

@@ -311,10 +311,8 @@ static int __init add_xo1_platform_devices(void)
 		return PTR_ERR(pdev);
 		return PTR_ERR(pdev);
 
 
 	pdev = platform_device_register_simple("olpc-xo1", -1, NULL, 0);
 	pdev = platform_device_register_simple("olpc-xo1", -1, NULL, 0);
-	if (IS_ERR(pdev))
-		return PTR_ERR(pdev);
 
 
-	return 0;
+	return PTR_ERR_OR_ZERO(pdev);
 }
 }
 
 
 static int olpc_xo1_ec_probe(struct platform_device *pdev)
 static int olpc_xo1_ec_probe(struct platform_device *pdev)

+ 0 - 2
arch/x86/platform/uv/tlb_uv.c

@@ -1607,8 +1607,6 @@ static int parse_tunables_write(struct bau_control *bcp, char *instr,
 				*tunables[cnt].tunp = val;
 				*tunables[cnt].tunp = val;
 			continue;
 			continue;
 		}
 		}
-		if (q == p)
-			break;
 	}
 	}
 	return 0;
 	return 0;
 }
 }