Skip to contentSkip to conversation

x86: use zalloc_cpumask_var for mce_devinitialized

PATCH New Yinghai Lu 2 participants 5 messages Jun 17, 2009 – Jun 18, 2009 x86

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: use zalloc_cpumask_var for mce_devinitialized

to make MAXSMP happy

---
 arch/x86/kernel/cpu/mcheck/mce.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/mcheck/mce.c +1 -1
Index: linux-2.6/arch/x86/kernel/cpu/mcheck/mce.c
===================================================================
@@ -1969,7 +1969,7 @@ static __init int mce_init_device(void)
 	if (!mce_available(&boot_cpu_data))
 		return -EIO;
 
-	alloc_cpumask_var(&mce_dev_initialized, GFP_KERNEL);
+	zalloc_cpumask_var(&mce_dev_initialized, GFP_KERNEL);
 
 	err = mce_init_banks();
 	if (err)
author
#1 lore raw

PATCH 1/1 x86: mce fix type

can not have two ignore_ce

---
 arch/x86/kernel/cpu/mcheck/mce.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/mcheck/mce.c +1 -1
Index: linux-2.6/arch/x86/kernel/cpu/mcheck/mce.c
===================================================================
@@ -1777,7 +1777,7 @@ static struct sysdev_ext_attribute attr_
 };
 
 static struct sysdev_ext_attribute attr_cmci_disabled = {
-	_SYSDEV_ATTR(ignore_ce, 0644, sysdev_show_int, set_cmci_disabled),
+	_SYSDEV_ATTR(cmci_disabled, 0644, sysdev_show_int, set_cmci_disabled),
 	&mce_cmci_disabled
 };
 
author
#3 lore raw

PATCH 1/1 x86: use zalloc_cpumask_var for mce_dev_initialized -v2

In reply to Yinghai Lu

need to get cleared cpu_mask about if mce device is initialized. esp when MAXSMP is used.

used zalloc_... instead

---
 arch/x86/kernel/cpu/mcheck/mce.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/mcheck/mce.c +1 -1
Index: linux-2.6/arch/x86/kernel/cpu/mcheck/mce.c
===================================================================
@@ -1969,7 +1969,7 @@ static __init int mce_init_device(void)
 	if (!mce_available(&boot_cpu_data))
 		return -EIO;
 
-	alloc_cpumask_var(&mce_dev_initialized, GFP_KERNEL);
+	zalloc_cpumask_var(&mce_dev_initialized, GFP_KERNEL);
 
 	err = mce_init_banks();
 	if (err)