On 08/03/2008, Gregory Haskins <ghaskins@novell.com> wrote:I guess, it's in arch-specific code. e.g. for x86-64, down: kernel/cpu.c :: _cpu_down -> take_cpu_down() -> __cpu_disable() [ arch/x86/kernel/smpboot_64.c ] -> cpu_clear(cpu, cpu_online_map) up: kernel/cpu.c :: _cpu_up() -> __cpu_up [ arch/x86/kernel/smpboot_64.c ] -> do_boot_cpu() -> start_secondary() [ runs on a to-be-online cpu ] -> cpu_set(smp_processor_id(), cpu_online_map) there are cpu-notification events available before a cpu gets removed from cpu_online_map or after it gets added, so I guess (a first guess. I'll also look at the code) they should be a sync. point. I have a small patch to record some events during the cpu_down/up. I have a trace but will already analyze it tomorrow. [ the patch is enclosed (err.. it also includes Gregory's fix... I just forgot to commit it previously :-/) ] e.g. it should print a message if a task is placed on the 'offline' cpu. Note, the 'cpu' is removed from the cpu_online_map before migrate_live_tasks() runs. So if any task remains on the offline cpu, it has been likely placed there already after migrate_live_tasks(). -- Best regards, Dmitry Adamushko
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Justin C. Sherrill | Re: pkgsrc bulk build and tiff |
| Jeremy Allison | Re: [RFC] Heads up on sys_fallocate() |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
| Matt Thomas | Re: Add a MAP_ALIGNED flag for mmap(2). |
| Vsevolod Stakhov | Unicode support in iso9660. |
| Jaromir Dolecek | Re: Speeding up fork/wait path |
| matthew green | re: merge of freebsd eventhandler |
git: | |
| Petr Janda | KDE and OpenSSL = Broken |
| sam | Re: Loader not found |
| Erick Perez | Re: dragonfly pdf documentation |
| Michel Talon | Re: Compatability with FreeBSD Ports [debian package tools] |
