x86: Use cpumask accessors code for possible/present maps.

Previous thread: x86 smp: modify send_IPI_mask interface to accept cpumask_t pointers by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)

Next thread: x86: Remove cpumask games in x86/kernel/cpu/intel_cacheinfo.c by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)
From: Linux Kernel Mailing List
Date: Friday, January 2, 2009 - 2:05 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1de88c...
Commit:     1de88cd4a33fcc2fcf70cbce01688723f728675d
Parent:     168ef543a43678146e06b3911e987ac021d575b8
Author:     Mike Travis <travis@sgi.com>
AuthorDate: Tue Dec 16 17:34:02 2008 -0800
Committer:  Mike Travis <travis@sgi.com>
CommitDate: Tue Dec 16 17:40:58 2008 -0800

    x86: Use cpumask accessors code for possible/present maps.
    
    Impact: use new API
    
    Use the accessors rather than frobbing bits directly.  Most of this is
    in arch code I haven't even compiled, but is straightforward.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: Mike Travis <travis@sgi.com>
---
 arch/x86/kernel/apic.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c
index 3b630ec..edda4c0 100644
--- a/arch/x86/kernel/apic.c
+++ b/arch/x86/kernel/apic.c
@@ -1903,8 +1903,8 @@ void __cpuinit generic_processor_info(int apicid, int version)
 	}
 #endif
 
-	cpu_set(cpu, cpu_possible_map);
-	cpu_set(cpu, cpu_present_map);
+	set_cpu_possible(cpu, true);
+	set_cpu_present(cpu, true);
 }
 
 #ifdef CONFIG_X86_64
--

Previous thread: x86 smp: modify send_IPI_mask interface to accept cpumask_t pointers by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)

Next thread: x86: Remove cpumask games in x86/kernel/cpu/intel_cacheinfo.c by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)