* [PATCH] x86: use cpu_clear in remove_cpu_from_maps
@ 2008-07-18 4:50 Yinghai Lu
2008-07-18 10:20 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Yinghai Lu @ 2008-07-18 4:50 UTC (permalink / raw)
To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
---
arch/x86/kernel/smpboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/arch/x86/kernel/smpboot.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/smpboot.c
+++ linux-2.6/arch/x86/kernel/smpboot.c
@@ -1310,7 +1310,7 @@ static void __ref remove_cpu_from_maps(i
cpu_clear(cpu, cpu_callout_map);
cpu_clear(cpu, cpu_callin_map);
/* was set by cpu_init() */
- clear_bit(cpu, (unsigned long *)&cpu_initialized);
+ cpu_clear(cpu, cpu_initialized);
numa_remove_cpu(cpu);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] x86: use cpu_clear in remove_cpu_from_maps
2008-07-18 4:50 [PATCH] x86: use cpu_clear in remove_cpu_from_maps Yinghai Lu
@ 2008-07-18 10:20 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-07-18 10:20 UTC (permalink / raw)
To: Yinghai Lu; +Cc: Thomas Gleixner, H. Peter Anvin, linux-kernel
* Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> --- linux-2.6.orig/arch/x86/kernel/smpboot.c
> +++ linux-2.6/arch/x86/kernel/smpboot.c
> @@ -1310,7 +1310,7 @@ static void __ref remove_cpu_from_maps(i
> cpu_clear(cpu, cpu_callout_map);
> cpu_clear(cpu, cpu_callin_map);
> /* was set by cpu_init() */
> - clear_bit(cpu, (unsigned long *)&cpu_initialized);
> + cpu_clear(cpu, cpu_initialized);
applied, thanks Yinghai.
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-18 10:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 4:50 [PATCH] x86: use cpu_clear in remove_cpu_from_maps Yinghai Lu
2008-07-18 10:20 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox